Facebook的Andr​​oid原生应用程序不工作的实际设备 [英] Facebook android native application not working on actual device

查看:125
本文介绍了Facebook的Andr​​oid原生应用程序不工作的实际设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司开发,它使用,我们可以登录到Facebook和登录用户的详细信息可以存储的应用程序。它工作正常,当我们运行模拟器的应用程序,但是,当我们运行在Android设备相同的应用程序并不运行。它不仅一次又一次,但没有显示加载显示登录窗口。

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.

  • 在我使用它的Facebook为我提供的APPID。
  • 我用hashkey指示在Facebook的发展部分。

综合应用(如Facebook的登录窗口,返回用户的信息)运作良好,在不同的模拟器,但在实际的设​​备,甚至没有打开登录窗口,它只是显示加载...

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...

推荐答案

请在下面更新$ C $应用程序的C,它会解决你的问题。

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());
}

这篇关于Facebook的Andr​​oid原生应用程序不工作的实际设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆