Cordova facebook连接插件失败登录到android [英] Cordova facebook connect plugin fail on login in 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屋!