2

I'm trying to send app invitation to my facebook friends using below code Everything works fine but friends are not able to receive any notification from my Facebook app invite.

FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init];
    content.appLinkURL = [NSURL URLWithString:@"https://fb.me/myappid"];
    //optionally set previewImageURL
    content.appInvitePreviewImageURL = [NSURL URLWithString:@"https://www.example.com/my_invite_image.jpg"];
    // present the dialog. Assumes self implements protocol `FBSDKAppInviteDialogDelegate`
    FBSDKAppInviteDialog *inviteDialog = [FBSDKAppInviteDialog showFromViewController:self withContent:content delegate:self];
BhushanVU
  • 3,455
  • 1
  • 24
  • 33
  • 2
    follow this link http://stackoverflow.com/questions/29484815/fbsdkappinvitedialog-in-facebook-ios-sdk-version-4-0-1-invite-successfully-sent – sandy Oct 27 '15 at 09:08
  • also i've had some issues because my App on Facebook wasn't Canvas app(only configured for iOS and android) - so people only were receiving notifications to the mobile Facebook app, not desktop. – quarezz Oct 27 '15 at 09:20
  • @quarezz for my issue : is your iOS app live? they are saying if app is live then only friends will receive notifications. in content.appLinkURL what kind of url you are providing? – BhushanVU Oct 28 '15 at 14:23
  • @BhushanVU yes, it was live at that moment. Can't give you much details though, it was some time ago and I don't have the account settings anymore. – quarezz Oct 28 '15 at 15:19

1 Answers1

4

After a few hours of also not seeing the invite notifications, I realized that the notifications only appear in the Facebook mobile app (not on the FB website).