Sign up with Facebook and Twitter SDK for iOS

I am trying to add my Facebook and Twitter login and register in my iOS app. Since my application is server based, I also need to create a user profile on my database. But the problem is that I can’t get passwords from Facebook and Twitter for obvious reasons. So I'm not sure how to do this. What should be used as a password for creating new profiles, and then also register users.

What have people done in the past to create profiles in their databases by retrieving information from Facebook and Twitter?

I want to save the email address, name, location, interests, and then the password. What should be the right way?

+5
source share
1 answer

Of course, you cannot access this information. How it works, Facebook or Twitter sends you the answer “Yes, the credentials are ok for user XXXXXX” or “No, bad credentials”. Then you can save the user ID in your database.

You will never receive any other information unless you ask permission.

https://developers.facebook.com/docs/concepts/login/

https://dev.twitter.com/docs/auth/sign-twitter

To request permissions, you will need to create an application.

How to request permission in facebook application?

+5
source

All Articles