Facebook account kit - Returns the error "Sorry, something went wrong." in android

I am using a set of facebook accounts in an android application. I completed the initial setup, and when I run the application, it displays an error

Sorry, something went wrong.

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

I searched a lot, but did not find anything useful. If anyone wants to share, please share this.

+5
source share
3 answers

You need to go through the link https://developers.facebook.com/apps/ ---- Your-App-ID --- / account-kit /

You can see Enable Client Access Token Flow. do it yes.

+5
source

@JayVDiyk You can get more information about the error by setting the debug flag of the init method to true to get more information about the link:

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

The way to set the init method to true :

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

You can also try the solution by adding http://localhost:3000' as follows: enter image description here

+1
source

Make sure that you set up the account set correctly. The error shows the wrong setting in my case.

:

  • Create a hash file
  • Create a Facebook app.
  • Add account to your Facebook application enter image description here enter image description here enter image description here

  • Android integration

    a. Gradle Dependencies

Add Dependency to Gradle for Account Set

 repositories { jcenter() } dependencies { compile 'com.facebook.android:account-kit-sdk:4.+' } 

b. Android Manifest

Add the following to AndroidManifest.xml:

 <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"/> 

Please follow the links:

1) Link 1

2) Link 2

0
source

All Articles