我試圖在FBAPPInvite深度鏈接,但我給了我下面的錯誤FBAppinvite中的深度鏈接錯誤?
我使用這個代碼
NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
[params setObject:@"1452" forKey:@"station_id"];
[params setObject:@"https://s3-us-west-1.amazonaws.com/myapp/radiostation.jpg" forKey:@"$og_image_url"];
[params setObject:@"Check out my favorite station on iHeartRadio" forKey:@"$og_description"];
[params setObject:@"Wild 94.9" forKey:@"$og_title"];
[[Branch getInstance] getShortURLWithParams:params
andChannel:@"facebook"
andFeature:@"app_invite"
andCallback:^(NSString *url, NSError* error) {
FBSDKAppInviteDialog *inviteDialog = [FBSDKAppInviteDialog new];
if ([inviteDialog canShow]) {
inviteDialog.content =[[FBSDKAppInviteContent alloc] init];
inviteDialog.content.appLinkURL = [NSURL URLWithString:url];
inviteDialog.content.appInvitePreviewImageURL = [NSURL URLWithString:@"https://s3-us-west-1.amazonaws.com/host/zackspic.png"];
[inviteDialog show];
}
}];
告訴我我們的代碼.. –
我添加在我的appinvite方法中使用的代碼 – imjaydeep