I've noticed that my android phone, the iphone, outlook.com, and yahoo mail all can import my friends' email addresses (and sometimes phone numbers) from facebook. However, I don't see anywhere in the documentation of the API to suggest that you can get email.
Do these services have special agreements with Facebook or am I just not finding the specific api for "contact" importing? I've not had any luck using "email" field with friends api.
Any ideas?
These services have some special agreements with Facebook and thus are able to retrieve the Email Ids of the Friends of the User. Most of them don't allow further exporting of data obtained from there directly.
And as per Email Permissions documentation here it clearly states that for App Developers
Note: There is no way for apps to obtain email addresses for a user's friends.
As per the phone number, there is no access to it no matter what permission. You may though ask the user to fill those for you.
Related
I am trying to implement a feature in my app, where users can see a contact list of which contacts (based on mobile number) already has an account on our app.
This feature can be found in all social media and banking apps.
Can someone guide on how to do so?
You can use https://www.npmjs.com/package/react-native-contacts to get all the contact details, then pass this array to your backend service to find the accounts with the phone number, then you can display them.
Is there a way to get four square users twitter id using foursquare API
I have checked the gnip API, i have contacted them but the said it only supports enterprises
I need the users twitter id who checkin to specific locations using Foursquare so i can allow my users to communicate with them on my website
I need Anonymous users data and specifically not my friends data
Have a look at the Four Square API's documentation for a good place to start... It appears that this information is potentially available, however it might be dependent on you being "friends" with them or not:
If the user is a friend, contact information, Facebook ID, and Twitter handle and the user's last checkin may also be present.
The users endpoint will return a user object: This is available in their Compact and Complete objects, but not their "Mini" object.
contact: An object containing none, some, or all of twitter, facebook, email, and phone. Both are strings.
https://dev.twitter.com/docs/faq#6718
If twitter doesn't provide any API, then how does foursquare retrieve them?
Foursquare has provision to list out the user's foursquare-friends who have registered with twitter.
It also provides API which shows friends of users who commonly appear in 'foursquare friend's list' as well as 'twitter followers list' of the user.
In both the above cases comparison can be made only through email.
Please help.
There's no way for you to get an e-mail from Twitter. Except, of course, by asking the person to give it.
What FourSquare does need no access to the e-mail. Matching is based on the Twitter name, not on the e-mail.
In the comments you say
My friend has registered in both Twitter and Foursquare. The only field common in her profile is the email id. No other fields match. She comes in the 2nd list which i have mentioned above.
but then you admit
After she has registered with FourSquare, went to her profile, clicked on friends -> Add Friends -> opted Twitter. She was asked to login to Twitter and thus she did it
This means that now FourSquare have access to her Twitter as well as your. Foursquare knows her Twitter id and your twitter id and can access Twitter (using Twitter API) to see who is following is following who. In other words when you say
The only field common in her profile is the email id. No other fields match.
You are wrong. Once she connected her FourSquare profile with her Twitter, all data that is accessible via Twitter API is in fact (at least potentially) part of her Foursquare profile.
But she needed to explicitly connect the two profiles (which she did when she opted to add friends to her Foursquare profile using Twitter).
I'm wondering how Facebook, Twitter and LinkedIn (to name a few) are using the Windows Live API to find the email addresses of the friends of a user to send them invitations.
When I try to use the Windows Live API I only get the email_hashes which can only be used to compare with existing user email of a system instead of sending them invitations.
Are these services paying Microsoft to benefit of an advanced API ?
Thank you,
Sébastien
All you need to do is add the following scope to the list of scopes you are requesting:
"wl.contacts_emails"
e.g.
WL.login({scope: ["wl.basic", "wl.contacts_emails"]})
I've integrated social logins (Facebook, Twitter, etc.) with a Rails app using Devise and OAuth. The requests and callbacks all work great and users are able to authenticate the app and login efficiently.
My problem is this:
With Devise, my site has the user's email address as the username. So, whenever a user logs in through a social site for the first time, a 'connection' record is stored for their account to show which social sites they've logged in with. If they don't already have an account on my site, one is created with the email address from the callback array. The connection is then stored along with the returned tokens and secrets for later use (FB posts, tweets, etc.).
Unfortunately, Twitter doesn't provide the email address. To circumvent this, I'm asking first-time users that login with Twitter to simply provide an email address so an account can be created. However, I can't figure out what to do if they already have an account on my site. I can't check if they already do since I'm not given an email address to match up. This could ultimately cause a user to have multiple accounts.
So, I'm a bit at a loss, and if anyone has any suggestions, it would be extremely helpful.
Thanks! :)
You'll need to store some oauth provider info like {provider, twitter identifier} too to your database and then check twitter oauths based on that instead of the email ID.
The simplest thing to do would be to add a slightly different flow for if the login was via twitter. Ask a first time Twitter login user for the email ID. In your users table, add a column called tw_id and add the users twitter identifier. Next time, if the login is via Twitter, you check the tw_id instead of the provider email and proceed with the normal app flow.