FBSDKMessageDialog * shareDialog = [[FBSDKMessageDialog alloc] init];
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentDescription =@"HELLO";
content.contentURL = [NSURL URLWithString:@"http://202.258.69.3"];
shareDialog.shareContent = content;
shareDialog.delegate = self;
[FBSDKMessageDialog showWithContent:content delegate:self];
它总是给我提供如下错误
-canOpenURL:URL失败:“fb-messenger-api:/” - 错误:“(null)”description ::操作无法完成。 (com.facebook.sdk.share错误202。)
答案 0 :(得分:0)
从错误中,我猜这是由于以下两个原因之一:
FacebookAppID
文件中添加了info.plist
密钥fbauth
fbauth2
中添加密钥info.plist
和LSApplicationQueriesSchemes
醇>