I am creating an Android application by which user can post messages and updates their status on Facebook with the different Facebook accounts so is their any possibility to do multiple Facebook Login with the same(my) app, please provide me suggestions how can I do this in android.
Thanks..
Android – how to do multiple facebook accounts login in android
androidfacebookfacebook-oauth
Related Topic
- Android – How to stop EditText from gaining focus at Activity startup in Android
- Android – unique Android device ID
- Android – the simplest and most robust way to get the user’s current location on Android
- Android – ‘Context’ on Android
- Ios – Design for Facebook authentication in an iOS app that also accesses a secured web service
- Java – Proper use cases for Android UserManager.isUserAGoat()
- Android – How to i get Image Resource ID and send it to other activity in Android
Best Answer
If you are using the fb android sdk for authentication then the login is bound to the logged in user in the main facebook app (katana) on the mobile device (in case it's installed).
Even if you sign the user out from your application the next time he opens the application the same user will still be used since he is logged in using the facebook app.
Only if the user logs out of the facebook app and logs in using a different account, then your app will be able to use that account.
What you can do is to authenticate the user without the SSO.
In this case, which is like the case in which the facebook app is not installed on the device, the authentication is happening using the SDK which opens the oAuth dialog.
The problem with this approach is that the user needs to enter his e-mail and password, which is not that much fun task to do with most mobile devices.
If you decide to go with this approach read this thread: How to disable Facebook single sign on for android - Facebook-android-sdk