In my application (https://market.android.com/details?id=com.cabot.beastly&feature=search_result), I am using facebook-android api to login and share to Facebook. It’s works fine in emulator and Samsung Galaxy Tab when i tested. But some bugs are reporting by the client, facebook login doesn’t load.
After lot of testing i found the reason. When the Facebook-Android application installed in the device the login doesn’t work. Otherwise it’s works fine.
mFacebook = new Facebook(GlobalHandler.getFacebookAppID());
mFacebook.authorize(this, new String[] {"publish_stream", "read_stream", "offline_access"},new LoginDialogListener());
How can i solve this?.
I changed the code, to do a forced login to facebook each time. By adding corresponding argument in the authorize function Facebook Object.