How can I retrieve photo details using facebook graph APIs?
I know how to retrieve posts details using FB apis by calling this URL: graph.facebook.com/<PostID>?accesstoken=AA
What about photo posts whose URLs contain photo.php?
As I understand you are asking about Photos that has been posted on user wall. These photo posts are same as any normal post but TYPE field of such posts is PHOTO.
The attached photo can be retrieved using the OBJECT_ID field of this post.
Refer following link for more detail.
https://developers.facebook.com/docs/reference/api/post/
It's the same:
https://graph.facebook.com/[PHOTO_ID]?accesstoken=
graph api
Related
I would like to update the like_count and comments_count for a specific instagram post with the new Facebook Instagram API. We have the post id and other data stored in our database and would only need the data of that specific post. At this point I am able to get the like and comment count via this API call:
https://graph.facebook.com/v2.12/xxxx?fields=business_discovery.username(jacqehoward){id,name,username,website,profile_picture_url,biography,followers_count,media_count,media.after(QVFIUlZA5aTR5NTE4Y24tNW90VGZAPTVBtb0NpOEFPTlNLeklmVTEtUDZAfVnE0YnBhUVNOQ3BDaktzNHJBTENhTmVYLUV2SGJPZAVAxZA09hQ2NhUGdnUGFjMTNn){id,caption,comments_count,like_count,media_type,media_url,owner,timestamp}}
After a while new posts are added to the account and you would need to go through all of the posts to find them again and to be able to get the like & comments count. In the old Instagram API you could get like and comment count per media. In the new Instagram API you are only able to get reach or "engagement" which is a combination of likes and comments while I want to have them separately.
https://developers.facebook.com/docs/instagram-api/insights
Anyone who has an idea how to add like count and comments count to the insight endpoint call?
Second question: If an instagram user with a private instagram account connects with your app how do you get the Facebook instagram ID so you can collect the posts on their timeline?
I'm making an android app that fetches the intagram post details from the post's share url.
For eg. for getting this https://www.instagram.com/p/Bjzikp0nQG0 post details I'm using Instagram api https://api.instagram.com/oembed/?url=https://www.instagram.com/p/Bjzikp0nQG0 to get the post details.
But if the post is video I'm only getting thumbnail. I searched a bit and found instagram deprecated the media endpoint. So I found instagram graph api's media endpoint https://developers.facebook.com/docs/instagram-api/reference/media/#metadata can be used to get the information.
But the final problem is this above graph api require a numeric id of the post to get the details and nowhere in the documentation mentioned how to convert instagram post's share link to post id.
I was trying to access the details(likes and comments) of the photos which are posted to facebook from instagram app.
I coulnd't find any way to get that.
how can i confirm that a photo is posted from instagram?
Did you try the facebook endpoint /me/instapp:take ?
I can at least get my photos... don't know about public pictures...
Now I am able to get my instagram photos and others as well but the thing is we can't access anybody's instagram photo details for that we need to have access token of that user.
I'm developing an app for iPhone(ios5), where I need the information of the posts I made highlighted in my facebook profile. Using facebook-graph api its possible to get all the data of user profile but is there any way I can get highlighted posts data ? For example I want to count and keep track of how many posts I highlighted in fb timeline.
You can use [pageid]?fields=posts.fields(timeline_visibility)
Each highlighted post will have timeline_visibility set to "starred"
i've noticed that there are some photos that doesn't appear in any albums. This photos are published by fan on a facebook page.
Is there any way to get this photos by the API ?
The API call /feed returns all the posts of the wall, but many of this photo that i seen in the wall on browser doesn't appear in the response of the API.
Any idea ?
Try using below
https://graph.facebook.com/<YOUR_PAGE_NAME>/picture
Hope this help
Kaushik
I use
graph.facebook.com/PAGEID/photos
Permissions Needed: user_photo_video_tags or friends_photo_video_tags.
refer to: http://developers.facebook.com/docs/reference/api/user/ user photos
http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fphotos
I have a live example of this usage is you wish to test. it is an iframe plugin that feeds the photos for a page. "is not set up for users".
Just replace "anotherfeed" page user name with any page.
https://anotherfeed.com/api.beta.php?type=photos&pageid=anotherfeed&width=350&height=500&limit=20&offset=0