Where does this error come from? Error: com.facebook.FacebookException: Failed to get application name

I can’t figure it out. I added my keyhash and everything to the Facebook webpage, but I can not understand this error.

11-12 19:51:27.744: D/HelloFacebook(5188): Error: com.facebook.FacebookException: Failed to get app name.
+4
source share
3 answers

I found this exception when my Facebook application is in Sandbox mode, but logged in and tried to post the status of a user who is not on the list of developers. You can test your developer roles or disable Sandbox mode.

+9
source

I ran into this problem and got its solution by putting the application name in FacebookDialog. So here is the solution

FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(activity)
    .setLink("https://www.google.com")
    .setApplicationName("name of app")
    .build();
    uiHelper.trackPendingDialogCall(shareDialog.present());

!

+2

I ran into the same problem and in my case I was missing from the AndroidManifest.xml file ie

<meta-data
        android:name="com.facebook.sdk.ApplicationName"
        android:value="@string/app_name" />
+1
source

All Articles