In my application, I need to fetch the facebook friends contact details such as mobile number/phone number, email address, etc from the user account. I am able to fetch the list of friends of the user first name, last name, fb id and profile pic.
Even in iPhone settings I am not able fetch all the friends contacts. Only very few contacts are able fetched. But in android, I have seen that it downloading all the contacts. Is Apple restricting this.
Can any one help me out to fetch the user friends list and their mobile numbers
You cannot get Facebook friends email id, number/phone number. What ever details of friends currently you are getting is the only thing Facebook provides about the user friends. ie first name, last name, fb id and profile pic.
Facebook doc's says
Note: There is no way for apps to obtain email addresses for a user's friends.
Related
Whenever I call FB.ApiRequest() to send invites it brings up a native facebook menu to quickly select friends.
Is there any similar call which would allow me to select friend's user ids in a similar manner/interface like above.
I want to do this so that a user can monitor only selected friend's scores in an app.
This is my first time playing around with the facebook api, and I couldn't find much info about this in fb's documentation.
You just need to call /me/friends after authorizing with the user_friends permission and develop your own selector. Keep in mind that you can only get friends who authorized the App too.
I am currently building an app, and I need to fetch all the friends of a user, in order to display them to that specific user (public picture + name).
I have tried to implement the taggable_friend into my app in order to do so, but Facebook is not giving me the permission to use it as they say it should only be used to tag friends in stories.
Also, my question is, how apps like "Tinder" and "Hot or Not" do to get access to my entire friend list (even the one not using the app)?
And in the case of "Hot or Not", they even display my friends not using the app so that if I like them, I can invite them to join.
In the v2.0 release on the Facebook Graph API, the ability to access a person's friends was changed in two ways. The first was via a new permission:
Friend list is no longer part of the default permission set and has
its own permission: Asking for access to a person's friend list is now
a separate permission that your app must request. The new permission
is called user_friends.
The second affected which people are returned when requesting the list of friends:
Friend list now only returns friends who also use your app: The list
of friends returned via the /me/friends endpoint is now limited to the
list of friends that have authorized your app.
You can find more information here:
https://developers.facebook.com/docs/apps/changelog#v2_0
I tested a lot Facebook API this year, and Facebook won't let you see your friends, for security matters, they only let you see the ones registered in the same app. If you are seeing the ones that are not, probably Tinder or whatever app is not using the latest version, v1.0 i guess, that will expire on April 30th, 2015.
My iOS app offers to the users to login using Facebook, Google+, Twitter or with a custom account. After the login, the user can connect all its social accounts to his account.
The app fetches the user contacts from all the social accounts he has connected.
Scenario 1: New user logs in with Facebook account
the user logs in with Facebook account, the app is authorized from Facebook and an access token is retrieved, so the app has all the details to proceed with fetching the contacts.
while the app is open, the user connect with his Google+ account, the app is authorized and it contains the access token
The app tries to fetch the Facebook and Google contacts -> OK
Scenario 2: Existing user logs in with Facebook account
The app has a fresh Facebook access token, but not a fresh Google+ access token, also if he already authorised the app and the 2 account details are merged.
How can I retrieve the Google contacts?
Is it possible to do it without asking again the user to authorize again the app?
Same scenario can be applied in the case user logs in with Google+ and he want to update the Facebook contacts.
Thanks
Many users sync their Facebook / Google contacts to the Contacts list on their device. You can join this list with users from your database using their emails, and then you have a list of their friends who also use your app. Obviously you have to store users emails in your backend this way, but if you're allowing them to login with multiple social networks, you'll want to do this because then you can map Facebook / Google / Twitter to one user in your app through their email. You also get the added benefit of displaying any friends who they've manually entered into their contact list. I think this is the easiest way.
If you want to go the route of connecting multiple social networks through your app then you would get friends from each social network who use your app through each of the API's (again joining with emails).
I'm a RoR newbie, building an app that allows users to register/link their FB and/or GMail accounts.
For example, User1 registers/links using their FB and Gmail accounts. Once registered, User1 recommends Sushi as their favorite meal.
User2 registers with their FB account, and happens to also be a friend (via FB) of User1. User2 then wants to see what the favorite meals are of people that are registered within the application, and only those they are connected to within FB.
User3 registers with their Gmail account, and happens to be in the contact list of User1. User3 then wants to see what the favorite meals are of people that are registered within the application, and only those they are connected to within Gmail contacts.
In reading the FB/Google API docs, I see that I can query for user's friends and/or contacts, but from a programmatic/performance perspective I'm having trouble wrapping my head around how to accomplish this, especially as the number of users grows. I don't want to store each and every relationship in my DB, so I'm looking for any advice/examples on how to accomplish this.
Thanks for your time and assistance.
that shouldn´t be a problem.
Once your users are registered with your App. You can use for example Facebook FQL API to check which of the FB users friends are registered with your App.
Spotify doesn´t update your friendslist often. You can cache his/her friendslist once a while if you have performance problems inside a NOSQL database since you are already getting JSON from Facebook API.
I am using Facebook SDK to connect Facebook in my app. User will logged in once and will make invitation about MyApp to their friends. I am successful to get ids and name of all Facebook friends. But I couldn't access to email id of Facebook friends. Is there anyway to get access to Facebook friends email ids? So that I can send them a invitation email.
Is there any other ways, that I can accomplish invitation function in application.
I hourly searched on google and so but no results points me to the solution.
Edit:
I've already accepted an answer, that says, there's no ways to get access to friends email id's. So I am looking for some other solution. There should be some solution exist.
Thanks!
There is no way you can get all the email ids of your Facebook friends. But if you have any concept like "Buddies" or "Friends" in your app, you can send request to the mail ids of registered users of your app who is already your Facebook friend. This is how many social network apps like Instagram do.
'Find Friends via Facebook' functionality in Instagram lists out the user's Facebook friends who are already on Instagram.
Eg: A and B are 2 users who are registered on Instagram. A and B are Facebook friends. But A & B are not buddies on Instagram.
While availing 'Find Friends via Facebook' facility, Instagram fetches user's Facebook-email-ID, Facebook-ID etc. Facebook provides API in such a way that user can list out his friends ID. Now, match-making is made to check if any of friend's Facebook-ID is already registered with Instagram. Thus it lists out all the facebook friends of users who are already registered with Instagram so that user can add him/her to the user's buddy-list.
Perhaps this is what you are looking for?
http://developers.facebook.com/docs/tutorials/ios-sdk-games/requests/
You can't. Unless they make their emails public
https://developers.facebook.com/docs/reference/api/user/