Facebook friend list in android' error [duplicate] - android

is there any way to fetch list of friends using facebook 2.0 API?
I was reading this upgrade from the API and it seems it is quite difficult to fetch the friends now,
but I have seen 2 permissions
read_friendlist
user_friends
Is their any way to fetch list of friends? and what about the widgets that get friends from facebook, will they go down?

In v2.0 of the Graph API /me/friends returns the user's friends who also use the app. You need to be granted the user_friends permission in order to get even app-using friends.
There is no way in v2.0 to get the full user's friends.
However, you may use the https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends API or the https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends APIs to get all the user's friends with tokens than can be used for tagging and inviting.
the read_friendlist perm doesn't get you a list of the user's friends, it gets you the list of a user's friendlists which may be used to build a custom privacy selector when publishing stories to Facebook.

As of 4/30/2014, you can only retrieve the friends who also use the app.
There are, however, specific methods for apps in the 'Game' category for inviting friends.
https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends/

Related

Keep track of friends signing up with Facebook in Android App

I am developing an Android App and using Facebook Login to let user sign up using their Facebook Accounts.
I am a beginner, so wanted to know how to keep track of user's friends signing up on my application and accordingly push notify both users. I am adding a timeline, so I want to show user posts from his social circle only.
Resolution: We are now considering using Invite Friends in latest version of Facebook Graph API.
Facebook did an update a while back , I dont recall which version of the SDK or Graph API (Graph API 2.0 maybe?) this took effect in but you really cant do that kind of thing anymore. Now when you request the list of friends for the user the user ID for the friend that is returned in that list is now randomly generated and not their real account ID.
So when a friend that was pulled in from another user attempts to login with your app the ID you get for them is entirely different. The only real way to do this would be to then name match really but that is entirely unreliable in most cases.
EDIT
This only behaves this way for games or for using the tagging api. Not for general friends list request.

Android: Getting a friend and chat history with him from Facebook messenger

Is it possible to start an intent from my android app to select a friend from Facebook messenger and get the conversation history with him? If yes how such intent should look like? Or do I have to use Facebook SDK for that?
This is not possible for several reasons:
First of all, you would need to select friends by using /me/friends, but you don´t get a list of ALL friends. Since v2.0 of the Graph API, you only get friends who authorized your App too.
You would need to get the read_mailbox permission approved by Facebook. But that permission will not get approved for Android Apps.
If that would be possible, an App would be able to get access to the messages of the friends of the authorized user. Which would obviously be a pretty heavy privacy issue. Just so you understand what this is not possible at all.

How to get complete friend list i.e., people using/not using app through facebook login

Android: Currently using facebook sdk 3.22 version
I've tried searching for this on all available links regarding this topic but dint find a proper solution
I tried to get friend list with taggable_friends api, got the friend list but want to get unique id of that user to store it on my server.
"invitable_friends" API will helps to get friend list but i don't want to use canvas in my application. So is there any alternative for this to achieve.
If it´s only for storing the IDs, there is no way to get ALL friends anymore. taggable_friends is for tagging friends only and invitable_friends is for inviting friends to a canvas game:
The invitable_friends API is only available for games that have a Facebook Canvas app implementation.
This has been discussed in countless threads already, for example: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app

Facebook permission for friend's profile information

I am using Facebook as signup option for my android app. I need to know what permission should i ask to get access to user's friends profile info, work history and education history, relationship status. I am using user_friends to get it but its not working. I am using this another app that uses Facebook signup and when i look at App Settings in my facebook account then following are the permissions.
Your basic info.
Your email address (**).
Your groups.
Your location.
Friends' profile info: birthdays, education histories, groups, interests, locations, relationship statuses, websites and work histories(I want this permission for my app).
Please help me guys :)
Thanks a lot
If you created your app after 4/30/2014, you're using Graph API 2.0, and all friend_* permissions have been removed.
The only way to get a friend's info is if that friend also uses your app, in which case you can ask them for permissions directly and get the info you need.
If you have created your app before 4/30/2014 then you can use the following permissions.
"friends_interests","friends_birthday","friends_about_me","friends_education_history","friends_work_history"

Find user's Facebook Friends that also use my Android App?

My app has an instant messaging feature. So it has a contact list.. I want to populate the contact list to help get my user started with some friends..
After asking permission I will:
1) Search the local contact database, send the phone numbers to my server and check for other accounts using my application that have the same phone number.
2) Ask them if they want to also import their facebook friends. At which point I suppose I will ask them for their username and password for facebook, log in to the Graph API and request their list of friends..
My question is, once I am iterating the list of friends from my user's facebook friends list, how can I link their facebook friend ID (or whatever identifier Facebook gives me) to some other ID in my app?
Will I see the email of all my friends users (after research, it looks like not)? Will I just get a numeric Facebook ID? If so, then how am I to harvest facebook IDs from all my users that have linked their account to facebook in my app?
I suspect this feature has been implement by other third party developers. So I'm looking for the strategy to identify and link my app users, to facebook accounts, and then iterate my app users friends list to find common users.
The question I am answering from a user perspective "Which of my facebook friends are already using this app, named XYZ on android"
You can store a user's Facebook ID alongside their other user information for your app, then match on the retrieved IDs from a Graph API /friends call. This way, you'll be able to see which friends have also linked the app to their Facebook account. You won't be able to fetch email addresses for a user's friends using the API.

Categories

Resources