Facebook connect issue
I have an android app of my own , in that there is a module using which one can post an event on Facebook by entering the start date, time.
This app asks for the Login email Id and Password for the first time. Then it saves the credentials and automatically posts the event next time the user uses this app.
The problem is, I have a scenario where the official Facebook app is there in the android phone.The user is already logged in , in the phone. Then if the user installs my app and uses the Facebook feature then it neither asks for the Login Email and password nor does it posts any event. But works perfectl开发者_如何学JAVAy fine if the Official Facebook app is UN-installed.
Please Help. :(
It would help if you provided a bit more detail about your app - and perhaps some code? But guessing based on what you say...
Is your app using the Facebook SDK authorize method? That uses Single Sign On (SSO) by default, which results in the SDK checking for the presence of the Facebook app, and if it is present, using the login status of the Facebook app. That would explain why you do not see a login when the app is present and the user logged in, and why you do when the app is not present.
You can disable SSO by passing FORCE_DIALOG_AUTH as the activityCode parameter in your call to authorize().
精彩评论