Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am using share dialog of facebook in order to share a link from my app to facebook. But I keep getting error com.facebook.FacebookException: Failed to get app name.

I already made my app status live and available to public.

Any help is appreciated.

like image 780
Garlex Avatar asked Feb 13 '23 12:02

Garlex


1 Answers

I faced the same issue, this is how I solved it for me. The solution was to add .setApplicationName("name of app")

FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(activity)
        .setLink("https://www.google.com")
        .setApplicationName("name of app")
        .build();
        uiHelper.trackPendingDialogCall(shareDialog.present());
like image 176
yaronbic Avatar answered Feb 16 '23 03:02

yaronbic