I am looking at developing an app that will make use of Facebook and have a question. In order for the app to work it would need to not only access the user's friends list, but also the user's friends' friends list and beyond. It would only access the users who have also signed up to the app.
Thanks in advance
Samy
And your question is …? :-) If you want to know if it’s possible to get that information – well, as long as the friends have authorized your app, there should be no problem, even over several „levels” of friends.
Related
It's possible to access through Graph API (or any other way) the list of all users logged in the past to my FB app?
Thanks
Marcello
There is no way to get that information, unless you store it in your own database.
You can see how many people using Facebook analytics. You cannot see their usernames, email, etc- you might be able to extend the analytics with some development to include those... but they dont come configured out of the box.
Here is a link to Facebook App Analytics:
https://developers.facebook.com/products/analytics
In my App, I go through different groups and pages, and check public posts that were posted by people that haven't installed my App.
How can I tell if a person that posted something is a friend of mine or not?
I am well aware that \me\friends returns only the list of friends who also installed my app, I don't want to get the full list, only check a specific person.
I am also well aware that Facebook currently returns app-scoped Facebook ID of a user of enters my application, but also returns public data about people using their non-app-scoped FB ID - however without this simple piece of info.
Thanks in advance
Unfortunately this is not possible until both persons have given your app the user_friends permission.
See
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/friends#readperms
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/friends#readmodifiers
You can't. The other user needs to login to your app and approve user_friends permission to your app. Otherwise it means they they have not approved it and you will not get the information
I am interested in creating a canvas app that will work as a communication tool that will use facebook user's friends lists. Is it possible to make a facebook canvas app that is actually a tool and not a game? Or is this agains facebook's policies? I couldn't find a direct answer for this question anywhere, so I thought I would ask here.
Thanks.
Of course you can create Apps too, but you will still not get the full friend list of the user, only those who are using the App (with /me/friends).
You can use taggable_friends to tag friends, But you are not allowed to use those for something else - only for tagging.
According to the Facebook docs, invitable_friends is only for Games - and of course it has to be used for inviting friends only.
How can I get a list of all the people that are using my Facebook app at this moment?
Is that even possible?
I need it in order to compare with user's friends, so the users would know if one of their friends playing the game right now...
You would need to store and surface this information in your own system. There is no Facebook API or method that returns this information.
I am building a small facebook app. In my app I am trying to get a list of my friend's friends. When I perfrom this I receive an error from facebook that I cannot select information about people that are not me (I was trying to retrieve my friend's friends )
Here is an example of what I mean:
User A - Uses the application
User B - Friend of user A and also uses the application
I want User A to be able to see a list of all of user's B friend's who are using the application as well.
Is there any way to get arround that? How can I do this?
The way to get a list of friends for someone is by using the friends.get API method. However, webdreamer is correct in that you can't just pick any Facebook ID you want and start pulling out friend information for that person. The person you query about has to have authorized your application... otherwise any app developer could find out anything about anyone on Facebook, which would be a privacy nightmare.
It's tough to tell exactly what you want to do though, as your comments say you just want the friends of a user, and your original question says you want the friends of the friends. The first is possible... the second is not.
For the first, all you need to do is have someone add/authorize your app. After that, friends.get will work fine with that user's session key, which will be provided to your application, and you can get a list of their friends.