現在
swift
1 @IBAction func tapFBTestButton(sender: AnyObject) { 2 let graphRequest = FBSDKGraphRequest(graphPath: "me/feed", parameters: ["fields" : "message"]) 3 graphRequest.startWithCompletionHandler({ (connection, result, error) -> Void in 4 guard let response = result else { 5 print("No response received") 6 if let error = error { 7 print("errorInfo:", error.localizedDescription) 8 } 9 return } 10 print("response", response) 11 print("connection", connection) 12 }) 13 }
これで、responseに、自分の投稿内容のテキスト情報が一覧でとってこれるのかと思ったのですが、
response { data = ( ); }
と返ってきて、空っぽです。
graphPathが違うのか、parametersが違うのかと思うのですが、リファレンスを見ても何を入れたらいいかわかりません。
どなたかお分かりになる方ご教授いただけると幸いです。
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー