我已经实现了 FBSDKShareLinkContent 来共享 contentURL、标题、描述和 imageURL。我在应用程序中实现了深度链接,在从 Facebook 选择图像时将其重定向到苹果商店。
我已经实现了以下代码:
FBSDKShareLinkContent *shareContent = [[FBSDKShareLinkContent alloc] init];
[shareContent setContentURL:url;
[shareContent setContentTitle:params.title];
[shareContent setContentDescription:description;
[shareContent setImageURL:imgURL;
它一直有效,直到我的应用程序重定向链接不处于实时状态。但是现在当我将它发布到 Facebook 时,标题和描述是不可见的。
最佳答案
Facebook 已在以下链接中回答了这个问题: https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.6#params
它清除了您的应用程序正在共享 google play 商店链接的 itunes 链接,然后添加到共享对话框内容的描述将不会发布在 Facebook 上。
关于ios - FBSDKShareLinkContent 应用处于实时状态时无法共享标题和描述 iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36749720/