Swift:iOS Facebook版编译错误

时间:2017-09-20 06:38:59

标签: ios swift facebook

我最近更新了fb pod。

我正在使用4.25.0,我在

中遇到编译器错误
extension LinkShareContent: SDKBridgedContent {
  internal var sdkSharingContentRepresentation: FBSDKSharingContent {
    let content = FBSDKShareLinkContent()
    content.contentDescription = self.description // ERROR
    content.contentTitle = self.title // ERROR
    content.imageURL = self.imageURL // ERROR
    content.quote = self.quote
    content.contentURL = self.url
    content.hashtag = self.hashtag?.sdkHashtagRepresentation
    content.peopleIDs = self.taggedPeopleIds
    content.placeID = self.placeId
    content.ref = self.referer
    return content
  }
} 

请建议我使用哪个版本的facebook来避免这些编译错误。

1 个答案:

答案 0 :(得分:1)

如果你没有在3行以下使用FBSDKSharingContent评论,因为这是FacebookSDK问题。

content.contentDescription = self.description
content.contentTitle = self.title
content.imageURL = self.imageURL