Cordova facebook连接插件失败登录到android [英] Cordova facebook connect plugin fail on login in android

查看:187
本文介绍了Cordova facebook连接插件失败登录到android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Android应用程序(phonegap)我正在使用Facebook服务登录。但是当我尝试使用Facebook登录时,会触发一个错误:

in my android application ( phonegap ) i am using facebook service for login. but when i try to login using facebook it will fire an error :

错误: Cordova facebook连接插件失败登录! Facebook错误:无法接收访问令牌

代码在模拟器上正常工作。但是当我在真实设备中测试时,会触发上述错误。

Code working fine on emulator. but when i test in real device it will fire me above error.

推荐答案

确保您的Facebook应用程序未设置为沙箱模式。

Make sure that your Facebook app is not set to sandbox mode.

应该将沙箱模式选择为已禁用。根据文档,如果启用,只有开发人员可以访问该应用程序。因此,在实际设备上的测试可能会发生错误。

The Sandbox Mode should be selected as Disabled. As per the documentation, if this is enabled, only developers can access the app. Hence, testing on a real device may through an error.

这篇关于Cordova facebook连接插件失败登录到android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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