在Facebook上发布时获取“FBSDKLog:不支持的FBSDKGraphRequest附件”

时间:2016-01-20 06:15:40

标签: ios swift facebook-graph-api

我一直试图使用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)
                    })
                } 

给出了这种类型的错误。

enter image description here

0 个答案:

没有答案