简体   繁体   English

Facebook OAuth在设备上显示错误,但可在模拟器上运行

[英]Facebook OAuth Gives Error on Device but Works on Emulator

I am getting an error in signing to Facebook from my Android Application on a device, while the same application works perfectly on the emulator. 从设备上的Android应用程序登录Facebook时出现错误,而同一应用程序在模拟器上运行正常。

When the user presses the Login button on the Facebook signup page, if the user credentials are ok, the same login page will appear again and again. 当用户按下Facebook注册页面上的“登录”按钮时,如果用户凭据正确,则将再次出现相同的登录页面。 When I connected the device in debug mode, I found that Facebook is redirecting my application to a page with "User Access Denied" in the query String. 当我以调试模式连接设备时,我发现Facebook正在将我的应用程序重定向到查询字符串中带有“ User Access Denied”的页面。 But when I run the same application on the emulator, it successfully gets signed in and has no issues with any other functionality. 但是,当我在模拟器上运行相同的应用程序时,它成功登录,并且其他任何功能都没有问题。

嘿,一旦检查了此链接,您可能会找到答案...因为我也遇到了同样的问题,但后来又实现了... 无法在真实设备上检索到Facebook的访问令牌

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 数据库在模拟器中工作正常,但在设备上出错 - Database works fine in emulator, but gives an error on device Facebook无法在Android设备上登录,但可以在Android Studio模拟器中使用 - Facebook log in on Android device not working, but works in Android Studio Emulator 从我的应用程序登录到Facebook可以在模拟器上运行但不在设备上运行 - logging in to facebook from my app works on emulator but not on device Facebook Connect在模拟器/设备上的工作原理有所不同,但在Google Play上却不同 - Facebook Connect works different on emulator/device, but not on Google Play Facebook集成应用程序在模拟器中运行良好,但在Android设备上运行不佳 - Facebook integration app works perfect in Emulator but not on Android device Device Admin API示例:在设备上的模拟器NoSuchMethod错误上可以正常工作 - Device Admin API sample: works fine on emulator NoSuchMethod error on Device Firebase Auth 给出 ViewPostIme 指针 1 在物理设备上运行但在 Android 模拟器上工作(Firebase 仅在模拟器上工作) - Firebase Auth gives ViewPostIme pointer 1 While running on a physical device but work on Android Emulator ( Firebase works only on emulator ) facebook 在模拟器上工作,而不是在设备上 - facebook working on emulator not on device HttpURLConnection在模拟器上有效,但在设备上无效 - HttpURLConnection works on emulator but not on the device Gif可在模拟器上运行,但不能在设备上运行 - Gif Works on emulator but not on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM