我一直试图使用FBSDKGraphRequest在我的应用程序上发布Facebook,但是当点击帖子按钮时,它显示“错误的”不支持的FBSDKGraphRequest附件“。
if FBSDKAccessToken.currentAccessToken().hasGranted("publish_actions") {
let parameters = ["message": ["title": "Task: \(self.textField.text!)", "textDescription": "Task Description: \(self.textAreaDescription.text!)", "dateTime": "Time: \(self.dateTime)", "location" : "Location:\(self.placemark!.locality!) \(self.placemark!.administrativeArea!)" ] ]
FBSDKGraphRequest(graphPath: "me/feed", parameters: parameters, HTTPMethod: "POST").startWithCompletionHandler({
(connection, result, error) -> Void in
if (error != nil) {
} else {
print(result)
})
}
给出了这种类型的错误。