facebook 'invite friends' get successful answer but not notification (swift)

624 Views Asked by At

I need some help with the 'invite friends' functionality of facebook.

The code I am using to invite friends is:

let inviteDialog:FBSDKAppInviteDialog = FBSDKAppInviteDialog()
if(inviteDialog.canShow()){
    let appLinkUrl:NSURL = NSURL(string: "https://fb.me/9999999999")!
    let previewImageUrl:NSURL = NSURL(string: "http://example.com/myimage.png")!

    let inviteContent:FBSDKAppInviteContent = FBSDKAppInviteContent(appLinkURL: appLinkUrl)
    inviteContent.previewImageURL = previewImageUrl

    inviteDialog.content = inviteContent
    inviteDialog.delegate = self
    inviteDialog.show()
}

When I do the test in my iPhone, It redirect me to the facebook app and list my friends, then I choose some of then, send the invitation and get the following result in the logs.

[didComplete: 1]

But my friends does not get the notification.

I am the administrator in the facebook console, one of the invite friends is in the developer role and the other one is in the tester role.

I created the appLink with facebook.

The configuration in my facebook console is:enter image description here

Thanks!

0

There are 0 best solutions below