Facebook graph api Facebook图形API:嵌套查询

Facebook graph api Facebook图形API:嵌套查询,facebook-graph-api,Facebook Graph Api,我正在尝试对facebook graph API执行嵌套查询,以通过同一调用检索页面数据和页面喜好(即页面喜欢的页面) 以下是对页面数据的查询: https://graph.facebook.com/v2.5/nytimes?fields=name,about,likes,website,description,category,cover,emails,general_info,username,talking_about_count 它返回输出1: { "name": "The Ne

我正在尝试对facebook graph API执行嵌套查询,以通过同一调用检索页面数据和页面喜好(即页面喜欢的页面)

以下是对页面数据的查询:

https://graph.facebook.com/v2.5/nytimes?fields=name,about,likes,website,description,category,cover,emails,general_info,username,talking_about_count
它返回输出1:

{
   "name": "The New York Times",
   "about": "Welcome to The New York Times on Facebook - a hub for conversation about news and ideas. Like our page and connect with Times journalists and readers. ",
   "likes": 10724374,
   "website": "www.nytimes.com www.twitter.com/nytimes www.youtube.com/nytimes",
   "category": "Media/News/Publishing",
   "cover": {
      "cover_id": "10150582560169999",
      "offset_x": 0,
      "offset_y": 0,
      "source": "https://scontent.xx.fbcdn.net/hphotos-xaf1/t31.0-8/s720x720/11262391_10150582560169999_4778921193093539141_o.jpg",
      "id": "10150582560169999"
   },
   "emails": [
      "help\u0040nytimes.com"
   ],
   "username": "nytimes",
   "talking_about_count": 852257,
   "id": "5281959998"
}
以下是对页面喜好的查询:

https://graph.facebook.com/v2.5/nytimes/likes
它返回输出2:

{
   "data": [
      {
         "name": "Sheri Fink",
         "id": "161972884003991"
      },
      {
         "name": "The New York Times Books",
         "id": "1002391179791389"
      },
      {
         "name": "The New York Times Styles",
         "id": "993603507345855"
      },
      ...

有没有一种方法可以在一个唯一调用中执行这两个查询,用以获取嵌套在输出1中的输出2?

不幸的是,我认为这是不可能的,因为这在Graph API中是一个不明确的问题。几个月前我打开了一个bug,看看


    • 不幸的是,我认为这是不可能的,因为这在Graph API中是一个模糊的概念。几个月前我打开了一个bug,看看


      好的,托比,我猜边和字段的名称有问题。所以我们唯一能做的就是等待2.6中的修复。期待下一个版本:(好的,托比,我猜边和字段的名称有问题。所以我们唯一能做的就是等待2.6中的修复。期待下一个版本:(