1
我在Facebook上分享我的信息。我在分享图片,内容网址,说明。我使用此代码共享:Facebook Deep Linking未打开应用程序
FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init];
dialog.fromViewController = self;
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentTitle = APP_NAME;
content.contentDescription = text;
content.imageURL = [NSURL URLWithString:[[arrAllEvents valueForKey:@"flyer_image"]objectAtIndex:0]];
content.contentURL = url;
dialog.shareContent = content;
dialog.mode = FBSDKShareDialogModeFeedWeb;
[dialog show];
我能深层链接(新闻供稿链接启动这个应用程式)选项https://developers.facebook.com。 我已经加入我的FBID和URLShema像这样
<key>CFBundleURLSchemes</key>
<array>
<string>abcevent://</string>
<string>fb1......</string>
</array>
和appdelegate.m这样
- (void)applicationDidBecomeActive:(UIApplication *)application {
[FBSDKAppLinkUtility fetchDeferredAppLink:^(NSURL *url,NSError *error){
if([[url scheme] isEqualToString:@"abcevent"])
{
[self callNewsletter:url];
}
}];
[UIApplication sharedApplication].applicationIconBadgeNumber = 0;
[FBSDKAppEvents activateApp];
}
添加代码为同一现在如果我通过应用程序分享的FB我的职务。该帖子点击并未在iPhone中打开我的应用程序深层链接无法正常工作。 任何人都可以告诉我有什么其他的东西缺少这个?
请参阅https://stackoverflow.com/questions/32643522/fbsdksharedialog-of-facebook-sdk-is-not-working-on-ios9和https://stackoverflow.com/questions/33290566/facebook-sdk- for-ios-fbsdksharedialog-is-not-shown确保你传递了正确的URL。 –
它不是' abcevent:// '是' abcevent ' –
canyou显示您的plist –