How to get the photo info on facebook - facebook-graph-api

I am trying to get the number of shares photos in a album.
https://graph.facebook.com/ALBUM-ID/photos
But this info not appear. This is possible?
Where found the potho-id?

Related

Facebook Graph Not Getting All Photo Posts

I'm trying to get all posts from a facebook page for the last two years. Access token is my own which has manage_pages, publish_pages, show_page_list.
The posts are there, they're moderately old early 2016, but, graph doesn't bring them back these older ones. They were scheduled posts, visibility=everyone and of 'photo' type. Any query on {page}\feed, {page}\photos, or {page}\posts yields only a couple of posts.
Facebook Insights Screenshot
https://pasteboard.co/Hde6ZWU.png
Graph Explorer Output Screenshot
https://pasteboard.co/Hde7iDP.png
Does anyone know how to enumerate these posts with graph, or know of the reason why graph isn't reporting them using the get/feed and get/photos command?
These aren’t photos, they are posts.
1409847682673697/posts?since=2016-01-01&until=2016-02-01
shows the first post from your dashboard screenshot, “Andrew Smith - Malta”, just fine.
This is a share of a post onto your page only - the “original” is https://www.facebook.com/andrewmsmithart/photos/a.1533059820295875.1073741827.1533035286964995/1648921165376406/ But since that is not a photo uploaded by your page nor has your page tagged in it, naturally it doesn’t show when you request your page’s photos.
The object_id field of your page post refers the actual photo object.

facebook graph api - pages - not getting images in the posts

when I am requesting posts from public facebook pages. I get all the messages in text but not getting any image which is there in the posts.
Have attached screenshot for the reference. The page which i have used is,
https://www.facebook.com/bbcnews/
and it's id is 228735667216
It´s called "Declarative Fields", see changelog. You have to specify the fields you want to get returned:
/page-id/posts?fields=message,picture,full_picture,...
Existing fields: https://developers.facebook.com/docs/graph-api/reference/v2.5/post

accessing videos uploaded to a page via the Graph API

I need to fetch videos uploaded by users to a Facebook Page.
I'd have expected them to show up in https://graph.facebook.com/me/videos/uploaded, but it appears this only covers videos I've uploaded to my profile, not to a page.
The only place I can find that these show up is https://graph.facebook.com/PageName/tagged, but there they're crammed in amongst all the other stuff and I can't filter to find just the authenticated user's uploads to the page.
Is there a way to get only a specific user's video uploads / tags to a page?
OK, if we’re just talking videos posted to the wall here, I guess you could get that info querying the FQL stream table.
Filter it by:
source_id: The ID of the page whose wall the post is on
actor_id: The ID of the user that published the post
type: "128" - Video posted
Information about the video should be in the attachment column.

photo not in any album facebook

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

how to get to which album a photo belongs by facebook graph api

Using facebook graph api, I can retrieve an alubm obejct by sending a request to
graph.facebook.com/99394368305 (Coca-Cola fan page wall photos)
I can also retrieve a photo obejct by sending a request to
graph.facebook.com/98423808305 (A photo from the Coke fan page)
However the returned JSON string doesn't contain information which album the photo belongs to.
Is there any work around solution?
my dear its simple solution is to query the photo table of facebook using FQL if you are having aid and pid.
http://developers.facebook.com/docs/reference/fql/photo/