3
https://graph.facebook.com/search?access_token=xxxxxx&q=hello&type=post&fields=from,message,picture,link,name,caption,description,created_time&limit=1&locale=en_US&scope=publish_stream,offline_access,user_status,read_stream

このようなグラフ検索の後、次のようなデータが得られます。

{
   "data": [
      {
         "from": {
            "name": "Eric Fluegge",
            "id": "100000626293694"
         },
         "message": "Well, here's go nothing. Hello Tennessee.",
         "created_time": "2013-03-30T19:23:44+0000",
         "id": "100000626293694_567340783296793"
      }
   ],
   "paging": {
      "previous": "https://graph.facebook.com/search?fields=from,message,picture,link,name,caption,description,created_time&q=hello&limit=1&type=post&locale=en_US&access_token=XXXXXXXXXXXXX&since=1364671424&__previous=1",
      "next": "https://graph.facebook.com/search?fields=from,message,picture,link,name,caption,description,created_time&q=hello&limit=1&type=post&locale=en_US&access_token=XXXXXXXXXXXXX&until=1364671423"
   }
}

それで、"id": "100000626293694_567340783296793"投稿IDですか?もしそうなら、この投稿IDを使用して、再度クエリを実行し、この特定の投稿情報のみを取得するにはどうすればよいですか? 私はmysqlテーブルに保存post idしたいと思います。その後、いつでも投稿を照会したいと思います。ありがとう。

EIDT:アプリの設定で、publish_stream,offline_access,user_status,read_stream

EIDT2:ロング ライブ トークンをGraph API Explorer選択して生成 しようとしました。read_stream

SELECT post_id, actor_id, message, type, attachment FROM stream WHERE post_id = "100000626293694_567340783296793"

結果はまだ空です。私は投稿者の友人ではないので、投稿を取得できませんか? または100000626293694_567340783296793投稿IDではありませんか?または他の理由?

4

1 に答える 1