8

With the new Facebook SDK 4.0.1, I have implemented below in my "Invite to App" button:

FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] initWithAppLinkURL:[NSURL URLWithString:@"https://fb.me/1111111111"]];
content.previewImageURL = [NSURL URLWithString:@"http://someImage.jpg"];

[FBSDKAppInviteDialog showWithContent:content
                             delegate:self];

By clicking the button, it successfully direct me to my Facebook app, I could pick my friends and type invite message, and the invites are sent (with a success tick at the end of the progress bar).

When I check appInviteDialog:(FBSDKAppInviteDialog *)appInviteDialog didCompleteWithResults:(NSDictionary *)results, the result is didComplete = 1. However, I could not see any notifications on my friends Facebook (which have not installed my app) or on Test User account Facebook. I am deeply frustrated with this, so any help is much appreciated.

A few more questions, I have put in my appID in the Facebook generated applink although my iOS app is still in development. Do I need a released valid appID for the applink to test the app invite function on Facebook? And does my Facebook app need to be reviewed and approved to test the app invite function with my friends? Thanks.

Roy
  • 383
  • 4
  • 15
  • Your app needs to be live for other people (non admin/dev/test user) to be able to see it. – amudi Apr 14 '15 at 01:22
  • hi.. can you answer this question http://stackoverflow.com/questions/33802803/facebook-app-invites-notification-not-working-in-ios. Please help me If you can. – Aarti Oza Nov 19 '15 at 11:39

2 Answers2

15

You can visit the link below. i have the same problem and this must help

Facebook App Invites iOS SDK v4.0 configuration and states

  1. You invited Facebook user who already used your app
  2. Must be a live Apple App id in App Setting Facebook
  3. If user already installed your app. you can assign them as a tester then they always receive your notification.

Hope this help :)

Community
  • 1
  • 1
gambogo
  • 166
  • 1
  • 4
  • getting error: Error Domain=com.facebook.sdk.core Code=9 "The operation couldn’t be completed. (com.facebook.sdk.core error 9.)" – Coder_A_D Sep 01 '15 at 13:21
  • Pls see question : http://stackoverflow.com/questions/32331116/ios-facebook-app-invite-error – Coder_A_D Sep 01 '15 at 13:22
  • how to check for the app is not yet on appStore. – Coder_A_D Sep 02 '15 at 06:28
  • hi.. can you answer this question http://stackoverflow.com/questions/33802803/facebook-app-invites-notification-not-working-in-ios. Please help me If you can. – Aarti Oza Nov 19 '15 at 11:39
12

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).

Tyler White
  • 398
  • 4
  • 10