getting list of friends from facebook - facebook-graph-api

Facebook API does not provide friends list of people using our fb app, according to their developer faq page. But still, websites like nimble and the live example of socialauth are able to get the names of people on our friend list, even those who do not use their app. Please, can any one help me with how this work?
The read_friendlist permission gives only name of lists like 'close friends', 'aquaintance' etc. the user_friends permission gives only the list of people in our friendlist who use our app.
What all api permssions do we need to get the full friend list?
I am trying to make an address book by importing contacts from google, facebook etc. using socialauth. Had success with google.

Those websites are probably using older Apps with v1.0 - it will stop working for them after end of April 2015. You can only use v1.0 with an App created before end of April 2014.

All 'friends_*' permissions have been removed from new version 2.1
You can use 'user_friends'
https://developers.facebook.com/docs/apps/upgrading
https://developers.facebook.com/docs/apps/changelog
For fetching app users user 'me/friends'
For more friends use 'me/taggable_friends' .
Remember it will still not return whole friends.
In new facebook api version there is no way to fetch whole friend list at one time

Related

How to get friend list using facebook graph api version 3.3?

I have access-token and using 3.3 version of facebook graph API. I am unable to get the friendlist of user. Can somebody help me to get friend list of person so that I can send them an invitation to install my app.
If it´s a game, you can use the Game Request dialog: https://developers.facebook.com/docs/games/services/gamerequests/
If not, use one of the Sharing Options described in the docs: https://developers.facebook.com/docs/sharing/
There is no way to get the friends with the API anymore, you can only access friends who authorized your App too - with the user_friends permission.

Friends list request from Corona SDK on Facebook API returns nothing

I've copied I code I used in an older game into my new game (it worked and still does in the old game) that I use to get the users friends list so I could publish (send) a message to which ever friends I want, inviting to play against me in my game, simple enough, no?
But it seems this does not work anymore, is that true? Does Facebook only allows an app to request just the list of your friends who also use the same app? I can't see how this helps the gaming industry get the word out on new games using the Facebook API to message about it from one user to his friend/s...
Am a complete fool and miss something? can the normal friends list be loaded into my Corona built game using the Facebook graph API?
Thanks.
Yes, Facebook has changed the rules and the me/friends will only return friends who have the app installed. You have to use various showDialog() features with friend pickers to see all your friends.

Corona SDK Facebook returns app_scoped_id and not my normal user_id

If I have understood it correctly Facebook made some changes so it returns app_scoped_id instead of the normal user_id.
The problem I have now is that no other function seems to work.
I receive an I id from Facebook, and it's the same each time I login, but if I use facebook.request("me/friends") the table is empty, if I use facebook.showDialog("friends") it
What do I need to do in Corona SDK to get this to work? Before I could use these functions after having setup them up in Facebook.
I read this thread explaining why this happen but it doesn't explain how to solve it in Corona SDK: Get Users App-Scoped user id in Facebook Graph API
As of Facebook API v2.0, friends list (/me/friend) returns ONLY user's friends who are already using your application. This limitation applies to all apps that are on v1.0 mode too.
If you're looking to get friends for tagging actions: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends
If you're looking to get friends for inviting to a Facebook Game on Canvas: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends
Cheers!

Graph API me/friends/ always return empty

i used to create Facebook APP, checked to get friends list using Access token from Graph API Explorer, it always returning empty data
https://developers.facebook.com/docs/apps/changelog
https://developers.facebook.com/docs/apps/upgrading/
Check those Links, Facebook made a big step forward towards privacy. /me/friends only returns friends who authorized the App too, that´s why the result is empty.
With the introduction of the Facebook Graph API 2.0, access a user’s friends list was removed and limited to just friends who use the same application. However, Facebook added two new APIs to allow retrieval of Friend names (and indirectly a friend count). The two new APIs are taggable_friends and invitable_friends.
In v2.0 of the Graph API, calling /me/friends returns the person's friends who also use the app.
Check this link: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app
When I login with ID my friend and retry send request "me/friends" again. It return ID my Facebook to me. If you need test, you can use this way.
I have currently find this one useful, just posting a snippet:
FB.ui({method: 'apprequests',
message: 'Please sign up .',
filters: ['app_non_users']
}, function(response){
console.log("Response from app requests:"+response);
});
Reference url https://developers.facebook.com/docs/games/requests/v2.1#params
Facebook was updated with version 2.0,
if you want to use Graph API me/friends/, you need to submit your app for review.
Steps to do it:
goto your Apps --> status and Review ---> start a Submission.
then you need to provide your information for review with screen shot.
Submit Items for Approval
Some Facebook integrations require approval before public usage.
Before submitting your app for review, please consult our Platform Policy and Review Guidelines.

Multiple friend selector in Facebook App

I just started with Facebook APIs a couple of hours ago. I am trying to build a app for a page (which will be used on the page only, and not on FB side) where the users will select some of the friends in their friend list and I need to save which users did they selected.
I see FB does provide something like this (Legacy FBML) but I am unsure of how to use it or its exactly what I want. Other than that, I have the option to just display the friends list in a similar interface on page and then get it done (I already have them in an array). But the Facebook like multiple friend selector would be great! Won't have to deal with searching and styling that much.
So what would be the best option to achieve this (I am using PHP SDK).
I am describing my requirements as follows:
User must be login into FB to do anything on the page
Login + Permissions Dialog box for App
Select friends among the friend list (lets say good friends), this is what I need to save.
Then an option to share the page with your friends (status/message?) so that they can do the same too.
Pardon me if I am missing something very obvious as I just started with it.
I found this jQuery to plugin do what I want - http://mike.brevoort.com/2010/08/10/introducing-the-jquery-facebook-multi-friend-selector-plugin/index.html
I am starting with JS SDK as of now, not using PHP SDK anymore!