Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Setup Facebook app invites of an iOS app

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 2.82k
    Comment on it

    Hello reader's !

    If you want to setup Facebook App Invites of an iOS app then follow these steps.

    • Using Facebook graph API , make a request to get facebook app_access_token (app_access token is not login access_token) . I m using google chrome postman to make request as shown :-


      alt text


    • After you get app_access_token, make another request as shown :-


      alt text


    • Now use app_FB_ID to get Facebook app invite URL. Make another request as shown :-


      alt text


    • In View controller , add a button and write this code to send app invites to Facebook friends as follows :-

    -(IBAction)shareApplinks:(id)sender {
    FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init];
    content.appLinkURL = [NSURL URLWithString:@"paste here Facebook _appInviteURL"];
    content.previewImageURL = [NSURL URLWithString:@"paste here your app image (logo) url"];
    [FBSDKAppInviteDialog showWithContent:content
                                 delegate:self];
    }
    

    Now send app invites to friends and enjoy ...

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: