0

FacebookページからこのJSONデータがあります:

{
  "data": [
    {
      "id": "1234567890_0987654321", 
      "from": {
        "name": "My Facebook Page", 
        "category": "Personal blog", 
        "id": "1234567890"
      }, 
      "actions": [
        {
          "name": "Comment", 
          "link": "http://www.facebook.com/1234567890/posts/0987654321"
        }, 
        {
          "name": "Like", 
          "link": "http://www.facebook.com/1234567890/posts/0987654321"
        }, 
        {
          "name": "Action Name", 
          "link": "http://example.com/"
        }
      ], 
      "message": "This post discusses something about Javascript.", 
      "name": "A post about javascript.", 
      "link": "http://example.com/", 
      "caption": "JavaScript", 
      "description": "Something telling about the post.", 
      "created_time": "2012-10-09T03:35:22+0000"
    },
    {
      "id": "1234567890_0987654321", 
      "from": {
        "name": "My Facebook Page", 
        "category": "Personal blog", 
        "id": "1234567890"
      }, 
      "actions": [
        {
          "name": "Comment", 
          "link": "http://www.facebook.com/1234567890/posts/0987654321"
        }, 
        {
          "name": "Like", 
          "link": "http://www.facebook.com/1234567890/posts/0987654321"
        }, 
        {
          "name": "Action Name", 
          "link": "http://example.com/"
        }
      ], 
      "message": "This post discusses something about CSS.", 
      "name": "A post about CSS.", 
      "link": "http://example.com/", 
      "caption": "CSS", 
      "description": "Something telling about the post.", 
      "created_time": "2012-10-09T03:35:22+0000"
    }
  ]
}

とにかく、すべての投稿を持っているFQLでこれを行うことができます"caption": "JavaScript"か? 投稿をカテゴリ別に並べ替えたいのですが、キーワードが"caption"属性内にあります。

4

2 に答える 2

0

注文ごとに短いフィードを取得したい場合は、FQL ここで使用する必要があるサンプルの 1 つを使用してください。

SELECT post_id, actor_id, target_id,description, message FROM stream WHERE source_id = me()  order by description
于 2012-10-09T06:37:44.450 に答える