Facebook App Invites iOS v4 SDK error

后端 未结 3 1649
一向
一向 2021-01-14 01:54

I\'ve double checked everything, from my understanding this is all I need to do:

self.inviteContent = [[FBSDKAppInviteContent alloc] initWithAppLinkURL:[NSUR         


        
3条回答
  •  一整个雨季
    2021-01-14 02:07

    You need to create an AppLink URL from here/

    1. Choose your application from the list

    2. Fill up the form with equivalent information

    3. Click on Next !

    4. You're done.

    Now, you can use that link with your code for invite.

    self.inviteContent = [[FBSDKAppInviteContent alloc] initWithAppLinkURL:[NSURL URLWithString:APP_LINK_HERE]];
    [FBSDKAppInviteDialog showWithContent:self.inviteContent delegate:self];
    

    The format of that link will be something like https://fb.me/xxxxxxxxxxxxxxxx

    All xs will be replace by a digit.

提交回复
热议问题