有没有办法使用facebook graphQL接收展平数据?

时间:2016-10-13 09:49:20

标签: facebook-graph-api

我刚才发现,有一个像GraphQL这样令人惊奇的东西。我很好奇,如果有任何方法使用它:

fields=id,name,description,place{name,location{city}},cover{source}

得到这个:

{
  "id": "100107243793441",
  "name": "Demoni Italiani live at Red Pub",
  "description": "",
  "place": "Redpub Sedico",
  "city": "Belluno",
  "cover": "https:..."
}

而不是:

{
   "id": "100107243793441",
   "name": "Demoni Italiani live at Red Pub",
   "description": "",
   "place": {
      "name": "Redpub Sedico",
      "location": {
         "city": "Belluno"
      },
      "id": "1255751344441946"
   },
   "cover": {
      "source": "https://scontent.xx.fbcdn.net/v/t1.0-9/s720x720/14519891_1118974604877184_8278251704306008958_n.jpg?oh=b564087098074d40b467e89d11d60874&oe=58650DC3",
      "id": "1118974604877184"
   }
}

也许存在一些别名?

0 个答案:

没有答案