简体   繁体   English

无法使用Facebook SDK登录到我的Android应用程序

[英]Cannot log in to my android application using facebook SDK

I am running an emulator on Eclipse to test an android application. 我正在Eclipse上运行模拟器来测试android应用程序。 Here is the screenshot after I enter my login info and click login: 这是我输入登录信息并单击登录后的屏幕截图:

fb

I have followed the instructions here . 我已经按照这里的指示进行 I have used the code at the bottom of the page here to get my developer key hash and have entered that key into the facebook developer settings. 我已经使用的代码在页面的底部, 在这里 ,让我的开发人员密钥哈希并输入该键进入Facebook开发人员设置。 Is there something I am missing? 我有什么想念的吗?

EDIT: 编辑:

I want to run the activity as a "sample" 我想将活动作为“示例”运行

You have to enable your app for public , 您必须为公共启用您的应用,

  1. Login to your developer account 登录到您的开发者帐户
  2. Select your app and go to "Status and Review" from left side tab list 选择您的应用,然后从左侧标签列表转到“状态和评论”
  3. There is a switch mentioning with "Do you want to make this app and all its live features available to the general public?" 有一个开关提到“您想让这个应用程序及其所有实时功能向公众开放吗?” , switch in to yes. ,切换为是。

What got it to work was create an app in my developer account, then Add Platform under Settings, and then enter the key hash into the Key Hash field. 要使它起作用的方法是在我的开发人员帐户中创建一个应用,然后在“设置”下添加“平台”,然后在“密钥哈希”字段中输入密钥哈希。

Previously I was just entering the Key Hash into Developer Settings > Samples, which wasn't working. 以前,我只是在“开发人员设置”>“示例”中输入“密钥哈希”,但无法使用。 I thought I could run my app as a sample. 我以为可以运行我的应用程序作为示例。

It did not require me to set the app as public. 它不需要我将应用设置为公开。 It remained in Development Mode. 它仍然处于开发模式。

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

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