Created
July 22, 2015 20:30
-
-
Save evanbarry/a158aea5ad6edbd2d0a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSMutableDictionary *branchDict = [[NSMutableDictionary alloc] init]; | |
| [params setObject:@"1452" forKey:@"referring_user_id"]; | |
| [params setObject:@"Alex Austin" forKey:@"referring_user_name"]; | |
| [params setObject:@"http://graph.facebook.com/517267866/picture?type=large" forKey:@"referring_user_pic"]; | |
| [[Branch getInstance] getShortURLWithParams:branchDict | |
| andChannel:@"facebook" | |
| andFeature:@"referral" | |
| andCallback:^(NSString *url, NSError* error) { | |
| if ([FBSDKAppInviteDialog canShow]) { | |
| FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init]; | |
| content.appLinkURL = [NSURL URLWithString:url]; | |
| [FBSDKAppInviteDialog showWithContent:content | |
| delegate:self]; | |
| } | |
| }]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there is a wrong typography error here ? I see you alloc a dictionary name "branchDict" but set info to a dictionary name "params".
My code also not working if I correct the two above ns dictionary to one name. The received invite user not get the info in the initial dictionary.