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
Related
Are the ads in Facebook considered as posts , is there a way to distinguish organic
posts from Ads ?
Some type of ads like unpublished page posts are ads considered "posts".
Usually, non-serving posts on the Page are used to create ads in the News Feed that will not appear on your Page.
Visually, in the news feed, you see as "sponsored post".
Using the API (https://developers.facebook.com/docs/graph-api/reference/v2.9/post), you can distinguish the posts using the field "is_published", that returns 'false' for page posts created as part of the Ad Creation process.
I hope it helped you.
the fan page 335667609918222 count is 2 but when i tried to access the below url https://graph.facebook.com/335667609918222/likes?access_token=CAAG4yxdE1UsBAFu8L0ZCdlFWWeJy2hCOnYtr9ZB42LvbqlqsPs1PAwHfZB3RIMVGXFcmwDMR6xVTvCjU1Pp3ler6FG17SGzY6lW5frZBaaJaUsfksHNnC3jvl9sjNgaTXi22C9VQsw95VdRWHluLdfy5fai0ij0yBNMmp64dObycqumuCBeO3O0JQj8q8STBRS9JZA2wTVQZDZD I am always getting the empty data.
Please help me out
The Facebook Graph API doesn't support that.
You can only query: "Does this user like Facebook Page X?", not "Give me a list of all users that Like Facebook Page X".
Also, your access_token is in the URL, you should probably keep that private.
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 was able to write a PHP application which requests an access node for the admin of the FB Fan Page, and then requests an access node to gain access to the fan page itself.
I'm now able to get all photos that were posted to the timeline of the fan page by going to https://graph.facebook.com/GROUP_ID/tagged?access_token=...
However, I actually want the photos the fan page is tagged in. The above url only gives me the photos posted to the time line of the fan page, not the ones in which the page is tagged by other users. According to the developers documentation I could get these by going to https://graph.facebook.com/GROUP_ID/photos?access_token=...
Everything seemed to work this way. I got a photo in which the fan page was tagged (profile picture of the fan page). However, I don't get any other photos in which the fan page is tagged. I tried to tag the fan page in its own photos (posted and tagged by an admin of the fan page) and tagging the fan page in other people's photos, but I only get the one profile photo in which the fan page is tagged.
Is this a permission problem or something else?
When requesting the access tokens I asked for the following permissions:
offline_access
read_stream
manage_pages
Any help would be greatly appreciated.
If I upload images to an album on my facebook PAGE (not profile) via facebooks website then other (non admin) users of that page can tag themselves in the photos. I have set that up in my page preferences.
"Posting Ability: People can add tags to photos by (PAGE NAME)"
However if I use the GRAPH API to upload the photos to an album on my facebook PAGE then only admin users can tag themselves. I am sure this was not always the case.
Here is an example of two images in the same album, one can be tagged the other not!
Image uploaded by the api:
https://www.facebook.com/photo.php?fbid=310796772303725&set=a.310794905637245.113595.170367249680012&type=3&theater
Image uploaded via the facebook website:
https://www.facebook.com/photo.php?fbid=342651955784873&set=a.310794905637245.113595.170367249680012&type=3&theater
I would be very grateful if anyone could let me know why this is happening
The solution is rather simple. The non-admin user must have Liked the page before they can tag someone. I Liked your page and I had the option to tag users in both images...