Reputation: 66
I created an invite url using Facebook tool.
Then I created a custom URL Scheme in info.plist. Same as used in invite url.
Next, I'm calling:
let content = FBSDKAppInviteContent()
content.appLinkURL = URL(string: "https://1234")
content.appInvitePreviewImageURL = URL(string: "http://myurl/fb-invite.png")
FBSDKAppInviteDialog.show(from: self, with: content, delegate: self)
As a result I get a proper invite page -> select friends -> send an invite -> get a UI indication that all went successfully.
But none of the recipients gets the invite.
None of the recipients ever installed or logged into the app.
Facebook admin panel says that the app is public.
Any ideas what may be wrong?
Upvotes: 1
Views: 615
Reputation: 391
Facebook shows notification only to test users added in the Facebook dashboard (if your app is not published).
Also the invite notification is only sent if the user does not have the app already installed. Invite notifications also don't show up on web (only on Facebook mobile app)
Finally make sure you are also checking for the invite under the "App invitation" section in FB app, sometimes the invites are hidden there.
Upvotes: 2
Reputation: 66
This appeared to be a known issue on Facebook side. You can track the status here: https://developers.facebook.com/bugs/262511517540133/?hc_location=ufi
Upvotes: 1