I have created an android app for Facebook integration with single user Login. Now i want Multiple user Login in the same application. How can i do this. Please give some suggestions with any android code or usable link. Thanks in advance :)
Asked
Active
Viewed 2,417 times
1
-
are you saving your FB cradentials in SharedPrefs. – Prashant Mishra Jun 13 '12 at 08:23
-
Dont Save them.. so you can be able to login with diff. Users. or is your requirement is different. – Prashant Mishra Jun 13 '12 at 08:29
-
@PrashantMishra There's no saving of the "credentials", the facebook sdk takes care of that, the app can only save access token, but that's not the problem. This is a facebook issue, not android. – Nitzan Tomer Jun 13 '12 at 08:34
-
Please explain it by any example.i m not able to understand how i use my app without saving them. – Priyanka Jun 13 '12 at 08:35
-
yes i have saved access_token and access_expires in sharedpreference. – Priyanka Jun 13 '12 at 08:36
-
hey..help me how can i login from my app with multiple user at a time.????? – Priyanka Jun 13 '12 at 09:03
-
Wait, you want to have more than one user logged in to use at the same time? – Nitzan Tomer Jun 13 '12 at 09:07
-
at a time only one user can login. – Priyanka Jun 13 '12 at 09:09
1 Answers
2
The facebook android SDK is trying to use the SSO if the device has the facebook application (katana) installed.
If the SSO is used then you have no way of doing so, the authorize
method will always use the logged in user in the katana and so you'll have to ask the user to manually logout in the main facebook application.
What you can do is call authorize
without the sso as expalined here: How to disable Facebook single sign on for android - Facebook-android-sdk.

Community
- 1
- 1

Nitzan Tomer
- 155,636
- 47
- 315
- 299