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).
Related
I am using HybridAuth on my project and added Facebook, Twitter and LinkedIn social providers in order for the user to be able to sign up/ sign in.
What I have encountered is that Twitter API does not return the users' email. Thus the user obviously can't sign up with his Twitter account.
Furthermore if the user has logged out - he can't even sign in with his Twitter account if he hasn't connected it to your application account, because the Twitter API won't use the email for searching the user in its' database. In order to be able to use Twitter Sign In, the user has to be signed in to your app and connect his Twitter account.
Is there anything I am missing and there is an actual way to Sign Up with Twitter?
I've created an iOS app that allows a user to log in with Instagram. I use a web view to display Instagram's authorization page as detailed here. This works great for Instagram users who signed up with a user name and password. However, Instagram also offers the option for new users to create an account using their Facebook account, and users who have gone this route are unable to log into my application because the Instagram login page doesn't give an option to authenticate with Facebook. How do I allow these users to log into my app?
Is it possible to authenticate a user to post to any Twitter or Facebook account from their iOS app? By this I mean not an account thats set it your Settings App. I'm hoping it can be done with their new iOS Social Framework as I know the Twitter and Facebook APIs will not always be supported.
I want to be able to enter the credentials of any user and make a post as them.
Your questions is kind of unclear, but it comes down to this: As an app developer, you are only allowed the permissions to the social account that the user is logged into inside of the settings app (and only after the user grants the app permission).
For the iOS social framework, the user is allowed to be simultaneously logged into multiple Twitter accounts, except only one Facebook account.
Read up on the Social.framework here: Social.framework
And the facebook open graph api here: Facebook Open Graph
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/
I'm developing a social network. Users may register and share their twitter username (if they want). Wherever the user posts a comment or other content, his username is displayed. I would like to display the follow #userTwitter button, if the user has set the twitter account.
Now, everything works, the problem is to validate that the user is the owner of that twitter account. Right now the user could be entering any valid twitter account! Maybe using the Twitter api?
You can set your app up as a Twitter client, this way your user has to log into twitter to authorize your app, thereby verifying their twitter identity.
This is a couple years old but might be enough to get you started:
http://www.1stwebdesigner.com/tutorials/twitter-app-oauth-php/