Reputation: 43
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.
Upvotes: 4
Views: 3950
Reputation: 292
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());
Upvotes: 4
Reputation: 8856
I faced same issue in android emulator.
I restarted the emulator and works fine. Its may be because of network not available.
Upvotes: 1
Reputation: 2453
You may check your developer roles or disable the Sandbox Mode.
Upvotes: 3