I am trying to add Facebook and Twitter login and sign up in my iOS app. As my App is server based, I need to create a user profile on my DataBase as well. But the problem is that I cannot fetch passwords from Facebook and Twitter for obvious reasons. So I am not sure how to go about it. What should be used as a password for the new profiles that are created, and then log the users in as well.
What have people done in past to create profiles on their databases by fetching information from Facebook and Twitter?
I want to save the Email address, Name, Location, Interests, and then also a password. What should be the right way of going about it?
The Facebook SDK enables: Facebook Login - Authenticate people with their Facebook credentials. Share and Send dialogs - Enable sharing content from your app to Facebook. App Events - Log events in your application.
The iOS SDK is a free download for Mac users. It is not available for Microsoft Windows personal computers. To test the application, get technical support, and distribute applications through App Store, developers are required to subscribe to the Apple Developer Program.
You can't access that information of course. The way it works is Facebook or Twitter sending you a response saying "Yes, credentials are OK for user XXXXXX" Or "No, bad credentials". Then you can save the user's ID to your database.
You will never get any other info unless you ask for permissions.
https://developers.facebook.com/docs/concepts/login/
https://dev.twitter.com/docs/auth/sign-twitter
To ask permissions, you will have to create an app.
How to ask for permission in facebook application?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With