Facebook android native application not working on actual device

点点圈 提交于 2019-12-18 06:59:53

问题


I developed an application which uses we can login to facebook and the logged user details can be stored. it is working fine when we run the application on emulator , but when we run the same application on android device it does not run .It only show the loading again and again but not showing the login window.

  • I used the appID which facebook provided me.
  • I used the hashkey as directed in facebook development section.

Overall application (i.e. facebook login window, returning the info of user ) is working well on different emulators but on actual device not even opening the login window it's just showing loading...


回答1:


Please Update below code of your application, it will solve your problem.

public void loginAndPostToWall() {
    facebook.authorize(this, PERMISSIONS, Facebook.FORCE_DIALOG_AUTH,
            new LoginDialogListener());
}


来源:https://stackoverflow.com/questions/8504823/facebook-android-native-application-not-working-on-actual-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!