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/
Related
I would like to add a function to let the possibility to users to invite their Facebook friends.
My problem is that there is no documentation (https://developers.facebook.com/docs/app-invites/ios)
The website is down and I don't have any information. Is it still possible to do that in an app?
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).
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.
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've been searching this question, and I haven't been able to find anything that works. I have an iPhone app that allows users to link their Facebook account. It would look something like this:
Once a user has successfully linked to FB, I want to present them with a list of their FB friends and an option to invite selected friends.
FB Friend 1........... Invite
FB Friend 2........... Invite
...
FB Friend 1000..... Invite
Basically, I want to send a message to FB friends that says something like "Check out this app". I'm pretty sure this has to go to either their notifications or wall and cannot go as a FB message, but I can't figure out how to do it.
Also, I don't need to select a group of friends to invite -- this can be done one at a time. So it would look like this:
FB Friend 1........... invited
FB Friend 2........... Invite
...
FB Friend 1000..... Invite
Thanks so much for any help you can provide.
Unfortunately there isn't anything in the iOS SDK that presents the apprequests dialog, and a user has to have installed/approved your application before you can send them application notifications via a POST request...
Requests are a great way to enable users to invite their friends,
accept a gift or help them complete a mission in your app. There are
now two types of requests that can be sent from an app:
User-generated requests: These requests are confirmed by a user’s
explicit action on a request dialog. These requests update the
bookmark count for the recipient. You send requests by using the
recently launched Request Dialog.
App-generated requests: These
requests can be initiated and sent only to users who have authorized
your app. Developers can send these requests using the Graph API. Use
these requests to update the bookmark count to encourage a user to
re-engage in the app (e.g., your friend finished her move in a game
and it’s now your turn).
The only way to get this is via Facebook's Requests 2.0 dialog (which is not currently available to the Facebook iOS SDK):
http://developers.facebook.com/blog/post/453
See more here in this related question...
Sending application requests that appear in the left column on Facebook home page?