简体   繁体   中英

Facebook integration app works perfect in Emulator but not on Android device

I'm making an app with Facebook integration. That works perfectly in emulator but does't work on android device.

That indicate some error...

App is misconfiguration for Facebook login. press okay to go back to the application without connection Facebook.

But it solve with this using Hash key

Than after it not store Access token and expires in device so it not work proper in device.

It will work perfect in Emulator But not on device. Why?

I'm using Facebook Hackbook code to implement this .

Please see below link of my previous so answer, it will solve your problem.

Facebook android native application not working on actual device

You are using SSO so probably when you are testing on your device, you already have your Facebook installed and when you are testing on the emulator, you don't. One solution would be to use FORCE_DIALOG_AUTH - this way you separate you app from the official one. It is not recommended though.

I suggest you install the FB official application on the emulator too, and just let your app connect/disconnect through it. Don't save your SharedPreferences because your app will take them from the FB App.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM