Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
894 views
in Technique[技术] by (71.8m points)

objective c - FBSDKAppInviteDialog in Facebook iOS SDK version 4.0.1 invite successfully sent, but no notifications received

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...