简体   繁体   English

无法在Facebook中授权。 Android SDK

[英]Cannot authorize in Facebook. Android SDK

I'm writing an Android app that allows to post messages to facebook. 我正在写一个Android应用程序,该程序可以将消息发布到Facebook。 When I try to login the facebook's page displays an error: 当我尝试登录Facebook页面时显示错误:

"An error occured". “发生错误”。 Please try again later" 请稍后再试”

I tried to use a lot of examples but none of them works. 我尝试使用许多示例,但都无济于事。 I assume that something is wrong in configuration of the app on facebook. 我认为在Facebook上应用程序的配置有问题。 I did not fill the Canvas Page, Canvas URL and Credits Callback URL fields when I was registering it. 注册时,我没有填写“画布页面”,“画布URL”和“积分回叫URL”字段。 Is that the reason of the problem? 那是问题的原因吗?

Thanks. 谢谢。 Roman 罗曼

Make sure you've set your Android key hash under the "Mobile and Devices" tab in the Facebook app's settings. 确保已在Facebook应用设置的“移动和设备”标签下设置了Android密钥哈希。 You will have problems posting if you do not set this correctly. 如果设置不正确,将在发布时遇到问题。 This is explained in detail on the Facebook Developer site . 这在Facebook Developer网站上有详细说明。

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

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