Facebook SDK共享链接内容被来自内容url的元数据所取代

我为FBSDKShareLinkContent设置了内容,并设置了每个参数contentURL,contentTitle,contentDescription,imageURL。

当共享对话框加载在Facebook本地应用程序,它正确填充我的参数。

然而,一旦我在facebook上查看post,参数数据不再显示 ,而是post标题来自contentURL的元数据。

如何用我的contentDescription和contentTitle覆盖元数据? 谢谢!

// Assemble Content var content: FBSDKShareLinkContent = FBSDKShareLinkContent() content.contentURL = NSURL(string: DOWNLOAD_LINK_APPSTORE) content.contentTitle = "My Custom Title" content.contentDescription = "My Custom Description" content.imageURL = NSURL(string: FB_IMAGE_LINK) // Share Dialog FBSDKShareDialog.showFromViewController(self, withContent: content, delegate: nil) 

如果有其他人有同样的问题,这一点。 如果您要共享的URL是iTunes App Storeurl,则会一致发生。 更改URL到任何其他网站解决了这个问题。

https://developers.facebook.com/docs/sharing/ios “注意:如果您的应用共享了iTunes或Google Play商店的链接,我们不会发布您在共享中指定的任何图片或说明,而是发布一些应用程序信息,我们直接使用Webcrawler从应用程序商店中获取,可能不包括图片,要预览链接共享到iTunes或Google Play,请在URLdebugging器中input您的URL。