Reputation: 41
I'm having problems with the AppInviteDialog provided by Facebook.
I'm using the following code snippet to show the dialog
if (AppInviteDialog.canShow()) {
AppInviteContent content = new AppInviteContent.Builder()
.setApplinkUrl(appLinkUrl)
.setPreviewImageUrl(previewImageUrl)
.build();
AppInviteDialog.show(activity, content);
}
The problem is the sentence AppInviteDialog.canShow() is returning false.
In the Facebook Developers page, they say no login is required to invite people
App Invites does not require Facebook Login.
But I noticed the AppInviteDialog.canShow() only returns true when I make login in my app. But if I close it an open again the dialog can not show.
Have any ideas what's going on?
Upvotes: 1
Views: 728
Reputation: 3315
Please see this answer. canShow()
returns false typically when the content you're trying to share is not supported by the web version.
Upvotes: 1