Android - Error: com.facebook.FacebookException: Failed to get application name

I am using facebook sharing dialog to share the link with my facebook application. But I keep getting the errorcom.facebook.FacebookException: Failed to get app name.

I have already made my application active and available to the public.

Any help is appreciated.

+4
source share
3 answers

I ran into the same problem, this is how I solved it for me. The solution was to add .setApplicationName ("application name")

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

You can check developer roles or disable Sandbox mode.

+3
source

Android.

. - .

+1
source

Source: https://habr.com/ru/post/1531530/


All Articles