简体   繁体   English

我的Android应用程序中的Facebook登录对话框黑屏,并带有关闭按钮?

[英]Facebook login dialog blank white screen with close button in my Android app?

I am facing Facebook Login Dialog Blank screen with close button 我正面临Facebook登录对话框空白屏幕,并带有关闭按钮

在此处输入图片说明

check inside app setting inside facebook that "sandbox" isnt check . 检查在Facebook内的应用设置内,“沙盒”未选中。 if it does it will do this problem . 如果这样做将会解决这个问题。 sandbox prevent login from other than the develepor facebook. 沙箱可阻止除develepor Facebook之外的其他用户登录。

At this moment, your app wants you to login by: 目前,您的应用希望您通过以下方式登录:

  • either redirecting you to the Facebook App if the latest is installed, 如果已安装最新版本,则将您重定向到Facebook应用,
  • or to this actual screen (which shouldn't be blank) if you don't have the Facebook App. 或者如果您没有Facebook应用,请转到此实际屏幕(不应为空白)。

My first guess is that your app can't access to the Internet. 我的第一个猜测是您的应用程序无法访问Internet。 Can you make sure you've got this line in your Manifest.xml? 您能确定在Manifest.xml中有这行吗?

<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name =“ android.permission.INTERNET” />

Can you make sure that you successfully entered the Native Android App information in your app settings: 您是否可以确保在应用设置中成功输入了本机Android应用信息:

原生Android应用

Moreover, did you: 此外,您是否:

  • set <string name="app_id">41234567890</string> in your res/values/strings.xml , res/values/strings.xml设置<string name="app_id">41234567890</string>
  • and <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/app_id"/> in the AndroidManifest.xml ? 以及AndroidManifest.xml <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/app_id"/>

Could you also check that you followed each step of this tutorial . 您还可以检查一下是否遵循了本教程的每个步骤。

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

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