简体   繁体   中英

Facebook ios sdk app invite

I generated app link with facebook: https://fb.me/961027397273550 , but when I try to send invite:

    FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init];
    NSString *urlString = @"https://fb.me/961027397273550";
    content.appLinkURL = [NSURL URLWithString:urlString];
    [FBSDKAppInviteDialog showWithContent:content
                             delegate:self];

I got this error:

Missing App Link URL The app link used with this invite does not contain an Android or iOS URL. Developers are required to enter a URL for at least one platform.

Why did thats happened? Can I create app link page with dynamic iOS scheme on my server?

you can create an applink here: https://developers.facebook.com/quickstarts/?platform=app-links-host

the iOS url is a url that cna be used to launch you iOS app - eg a schema (app://) used for deeplinking.

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