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

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.

Related

In-app friend list from Facebook Graph friends

I am new to developing android apps with facebook functions. Currently my app has the functions for log-in and friend list fetching.
What I want to do is for my app to have its own friendlist (sort of social network) so when the user first logs in, he has no friends, but then he can add them from the list of friends from facebook. However, what I don't want is for the user to send more than one friend request to a single person.
Actually I store the invitations he sends and the friends he already has but when I fetch the Facebook friend list via Graph API it gives me ALL the friends that are using the app and I have to filter it to remove all the current friends and the friends he already send invitations to.
I was wondering if there is some way to create a private facebook list with the friends the user has send invitations to, and then when I fetch the normal friendlist (/me/friends) to automatically remove the ones that are registered in the private friendlist. Or if there is another way to do this and avoid in-app list filering
For that case, there is no way to get all friends anymore. You can only get those who authorized your app too with /me/friends.
Everything else is explained in the answer of this thread: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app
If you understand that, then i am not sure what your question is, to be honest. If you want to create your own friendlist, you can just do that, but there is no Facebook API for this.

Android Facebook login Which information to store

I have tried to look for information by using different search strings but still could not locate the information i want or may be i m not using proper search string.
I have integrated facebook login into my android application.
My question is what information should i store in my database so when session is expired and user logs in again, they do not have to register again with my app rather using the information i get in login i can query my database and get the user information.
Functionality in the application is
User login using facebook
Query database to get profile details. (Here which information to store from facebook login so can identify the user uniquely).
If profile not found display create profile screen.
If profile already created and fetched from database then display dashboard.
I have already implemented facebook login and i m able to fetch name and email.
My app do not require posting of any kind of data on user wall or anything just require for login purpose.
The only data you need to store to identify returning users is the App Scoped ID. Emails can change, but the App Scoped ID will stay the same for the same user.

How to show user's joined group from Facebook?

In my web project, user will login using Facebook, Using my FB app I want to access users joined groups list. I want to show that list to the user. User will select the desired group from that list and submit it back in the website.
Accessing user group will require a facebook permission and review. I submit my app and I got this response- user_groups
General
The user_groups permission is only approved for apps that let people use Facebook on platforms or devices that don’t have a Facebook app. If you're building an app on Android, iOS, Web or Desktop, for example, you won't be approved for this permission.
I am not able to understand the meaning of it. Does anyone face the same issue?

Facebook friend list in android' error [duplicate]

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/

Fetch all Email address of facebook user in android

i m creating application in which i have to obtain friend list of facebook user account which i got but now i have to also obtain their Email addresses but not getting any kind of hint , tell me how can i fetch all Email addresses of facebook users in android
AFAIK Its not possible cause Facebook API doensn't provide it.
From Experience:
You can search and read a bit more in Facebook Graph API permission and you will find for contact information need to give extra permission "email" but while fetching user acoounts of Friends you wont get them even if they(friends) have set their info shared to everyone.

Categories

Resources