简体   繁体   English

在S4和Nexus上进行Facebook身份验证

[英]Facebook authentication on S4 vs Nexus

I'm trying to allow my android app to post to facebook, a user selects a share option and if the app can retrieve the login data from the original facebook app it logs in and the user can share a message, otherwise they can provide the details. 我正在尝试允许我的Android应用发布到Facebook,用户选择一个共享选项,并且如果该应用可以从它登录的原始Facebook应用中检索登录数据,并且用户可以共享一条消息,否则他们可以提供细节。 I've got the code working perfectly on a galaxy nexus running android 4.2.1 and emulator (4.2.2), but on my galaxy S4 (4.4.2) it doesn't work, it asks the user to access facebook profile and friends list. 我的代码在运行android 4.2.1和模拟器(4.2.2)的星系关系上运行良好,但是在我的galaxy S4(4.4.2)上它不起作用,它要求用户访问Facebook个人资料并朋友列表。 After you click accept it just goes back to the login screen. 单击接受后,它会返回到登录屏幕。 I expect it has something to do with the session not being passed back after login. 我希望这与登录后未传递回会话有关。 Why does The exact same code work on a nexus and emulator but not a S4? 为什么完全相同的代码在联系和仿真器上有效,而在S4上却不起作用?

All developers needs to be registered with a Facebook Developers account. 所有开发人员都需要使用Facebook开发人员帐户进行注册。 To add a developer go to your Applications Page , and in the Roles section click Edit Roles. 要添加开发人员,请转到“ 应用程序”页面 ,然后在“角色”部分中单击“编辑角色”。 Now you can add people who will be using your application during the development phase including Admin, Developers and Testers. 现在,您可以添加在开发阶段将使用您的应用程序的人员,包括管理员,开发人员和测试人员。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM