在使用FBSDK for iOS时,我正在尝试附加/标记相关的Facebook页面。任何指向他们文档的指针?我在message_tags参数上查找了一些信息,但不知道如何使用它。
let shareParams = ["message":"Check out this page @PAGE_NAME"]
let fbRequest = FBSDKGraphRequest.init(graphPath: "me/feed", parameters: shareParams, HTTPMethod: "POST")
fbRequest.startWithCompletionHandler { (connection :FBSDKGraphRequestConnection!, result, error) -> Void in
if let responseError = error {
if responseError.domain == FacebookSharerErrorDomain.FacebookAPIError.rawValue {
self.handleFacebookAPIError(responseError)
} else {
Error("Unable to share")
}
} else {
Success("Shared to Facebook")
}
}