This is more of a generic question: which combination of scope permissions and endpoints in V2.0 of the Graph API allows an app to access every photo that I either uploaded or that I was tagged in?
In other apps I've seen "this app will receive the following info: your public profile, friend list, email address, photos and videos and your friends' photos and videos."
I only know of user_photos and user_videos, which when I use only returns 60% of the photos that I see when I'm logged into my personal Facebook account.
In browsing these lists in graph explorer, it's not clear which permissions are responsible for "your friends' photos and videos.
Found this bug report on Facebook - https://developers.facebook.com/bugs/701749743226238/
Related
I'm struggling with Facebook Graph APIs: I'm trying to get all the people tagged in a photo but I only get myself as user tagged (also if there are more users tagged in the photo).
Is there any way to get all people tagged in a photo by Graph API?
Thanks
Stefano
No, there is no way - only users who authorized your App too would show up. If a user did not authorize your App, he will not show up anywhere in any API call, for privacy reasons.
I am in the prototype and research stage of an app that would create a quiz about a FaceBook user's friends. The gist is that each question would ask the user to match the profile picture of her Facebook friend with the name of the Facebook user that picture belongs to.
As I read the v2.3 Facebook API documentation, specifically the section about the user_friends permission, it appears that any app I make will only be able to get the user's friends' info if the friend has also installed and authorized my app.
If this is indeed the case, I won't even attempt the app as it's unlikely to be any fun if the content is limited to the set of friends who have installed the app.
Is there any other way to get the user's friends info while staying within the bounds of the Facebook Developers Terms of Service AND without requiring that the user's friend has installed and authorized my app?
Yes, that is indeed the case, you can only get access to friends who authorized your App with user_friends too. There is no other way since you don´t want to "invite friends to a canvas game" or "tag friends".
Check out the answer in this thread for more information: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app
Scenario: logged with my Facebook account and using a browser, I'm able to see some photos and albums of some users which aren't friends of mine (with a privacy setting of public or similar) and quite all their past profile photos.
For example the URL
https://www.facebook.com/<userid>/photos_all shows those photos.
I want to replicate behaviour with Graph API but GETting
https://graph.facebook.com/<userid>/photos?access_token=...
Gives me an empty data array.
Same scenario using tagged or albums instead of photos
I've tried to use site scraping but FB website uses AJAX to populate gridview of photos, so It's very difficult.
On Graph API Explorer I've requested and use an access token with all permissions and also a debug access token but I'm still unable to get other users' photos.
It's possibile to get photos of users which aren't in friend list with Facebook Graph API? Am I missing something?
For privacy reasons, it´s not possible to get the photos of OTHER users with the API. Even for the authorized user, you need the user_photos permission.
Scraping is not allowed btw: https://www.facebook.com/apps/site_scraping_tos_terms.php
I have never used facebook API.As part of my research project, I need to get activity data (the posts made, the links shared etc.) of a user's friends. Is it possible to get this data via facebook API? Do i need permission from user only or i need permission from user's friends too for accessing that data? I am assuming that since a user can see wall posts of his friends when he visits his friend's facebook profile, the same thing is possible using the API too.
In the FB Graph Explorer, I run a graph for me/friends, returning the ids of all my friends. Then, I choose the id of a friend whom I know as photos visible to me in an album and run the request [friend's id]?fields=photos.
Almost all the time, none of the friend's photos' ids are returned in the explorer, even though I can plainly see them on through my FB account. All I get back is the friend's id. I have both the general user access token and friends_photos permissions selected. [friend's id]?fields=albums has the same result.
However, with a few certain friends, the request does return all of the photos the friend appears in.
What is making the difference and what must I do to gain access to my friends' photos through the SDK?
The correct query is [friend's id]/photos and [friend's id]/albums
Test with Graph API Explorer:
https://developers.facebook.com/tools/explorer?method=GET&path=FRIEND_ID%2Fphotos