Facebook帐户工具包 - 返回错误"我们很抱歉,出了点问题。"在android中

时间:2016-08-25 13:11:05

标签: android facebook

我正在Android应用程序中实现facebook帐户工具包。我已完成初始设置,当我运行应用时,它会显示错误

  

我们很抱歉,出了点问题。

https://developers.facebook.com/docs/accountkit/android

我搜索了很多,但没有找到任何有用的东西。 如果有人有分享的话请在这里分享。

3 个答案:

答案 0 :(得分:5)

您需要浏览链接 https://developers.facebook.com/apps/ ---- Your-App-ID --- / account-kit /

您可以看到启用客户端访问令牌流。 说实话。

答案 1 :(得分:1)

@JayVDiyk您可以通过将debug方法的init标记设置为true来获取有关错误的更多信息,有关参考的详细信息:

https://developers.facebook.com/docs/accountkit/webjs/reference

您可以将init方法设置为true

AccountKit.init({appId: 1, state: state, version: 'v1.0', debug: true})

否则,您可以像这样添加http://localhost:3000'来尝试解决方案: enter image description here

答案 2 :(得分:0)

确保正确设置帐户套件。在我的情况下,错误显示错误的设置。

步骤是:

  1. 生成密钥哈希
  2. 创建Facebook应用程序。
  3. 将帐户套件添加到您的Facebook应用程序 enter image description here enter image description here enter image description here

  4. Android集成

    一个。 Gradle Dependencies

  5. 在帐户套件的gradle中添加依赖项

    <meta-data android:name="com.facebook.accountkit.ApplicationName" android:value="@string/app_name" />
    <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id" />
    <meta-data android:name="com.facebook.accountkit.ClientToken" android:value="@string/account_kit_client_token" />
    
    <activity
     android:name="com.facebook.accountkit.ui.AccountKitActivity"
     android:theme="@style/AppLoginTheme"
     tools:replace="android:theme"/>
    

    湾Android Manifest

    将以下内容添加到AndroidManifest.xml

    cocoon

    请浏览此链接:

    1)Link 1

    2)Link 2

相关问题