Get a list of my friend's friends - facebook

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.

Related

Get Facebook taggable friends not using the app

I need to show the list of the user friends. First, I check the friends who are using the app, and then the friends who are not (My app treat them in a different way).
Since the new API change, the only option is Taggable friends, but I need to separate the app user and the non app users.
I am looking for something like this:
/v2.3/me/taggable_friends?filter=non_app_users
Is it possible?
You can just get all friends with me/taggable_friends and match them with the list of friends you get with /me/friends, i don't think there is another way. But make sure you are using taggable_friends for tagging only, and nothing else.

How can I tell if someone is a friend of mine in Facebook Graph API V2.0 and above?

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

How can I get user's best friends throught Facebook Graph API

I am designing an App for iPhone and I want the user to share my App to his or her best friends. Now I can get user's friendlist throught Facebook Graph API. But how could I find user's best friends? I have an idea that I can use the user's wall to find which friend often appears on the wall. However, some pages and famous people like Obama always appears on the wall. Could someone give a feasible solution?
Define “best friends”, please.
If that is supposed to be something based on the user’s personal perspective at the very moment – then probably best to just let them choose their “best friends” the want to a request to themselves via a simple multi-friend selector.
Or are you referring to a user’s list of “close friends”, the default friend list on Facebook that every user can add friends to? That’s available via API, check the /me/friendlists connection. https://developers.facebook.com/docs/reference/api/FriendList/

Developing a new app using facebook friends list

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.

Get id's of people that are using your facebook app at this moment

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.