简体   繁体   中英

Facebook SDK 4.0 App Invites for iOS

I am using Facebook SDK version 4.0. I am trying to make a demo for App Invite. I am following all the steps mentioned on the Facebook Developer Docs.

I can see my passed app link and image on when FB Invite Dialog opens, Even I can able to see my friends and select among them. After that I am getting issue. Dialog shows error but no description. Please see attached screenshot.

If anyone have implemented it then help me out.

在此处输入图片说明

I used below code,

FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] initWithAppLinkURL:[NSURL URLWithString:@"My App Link"]];
    //optionally set previewImageURL
    content.previewImageURL = [NSURL URLWithString:@"<preview image>"];

    // present the dialog. Assumes self implements protocol `FBSDKAppInviteDialogDelegate`
    [FBSDKAppInviteDialog showWithContent:content
                                 delegate:self];

I was having same issue.

In my case,I was using my website URL as my App Link URL and My website was having wrong fbAppId in its meta data, which caused this issue.

确保您的Facebook应用程序处于活动状态,这意味着您必须填写一些信息,根据我报告的错误,他们说,对于不需要自己使用的测试,只需提供有效信息即可,例如有效的App Store ID在您的Developer iOS设置和隐私政策网址中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM