0

我对图形 api 有疑问。调用“https://graph.facebook.com/[pageID]”失败并显示消息

    {
   "error": {
      "message": "Unsupported get request.",
      "type": "GraphMethodException",
      "code": 100
   }
}

我需要 facebook 页面的完整 url。有没有办法只从 pageid 获取页面的 url?

编辑:谢谢你的提示。错误是,当页面不公开时,我无法通过图表查询信息。当我(页面管理员!)调用graph-url时,它也不起作用......

4

1 回答 1

4

如果您查看Page Graph API Reference有一个示例 url 来获取有关页面的信息,请包含您想要的页面的 url。示例 url 请求是:

https://graph.facebook.com/19292868552

结果是:

  {
       "about": "Grow your app with Facebook\nhttps://developers.facebook.com/ ",
       "company_overview": "Facebook Platform enables anyone to build social apps on Facebook, mobile, and the web.\n\n",
       "is_published": true,
       "talking_about_count": 34563,
       "username": "FacebookDevelopers",
       "website": "http://developers.facebook.com",
       "were_here_count": 0,
       "category": "Product/service",
       "id": "19292868552",
       "name": "Facebook Developers",
       "link": "http://www.facebook.com/FacebookDevelopers",
       "likes": 1187896,
       "cover": {
          "cover_id": "10151298218353553",
          "source": "http://sphotos-b.ak.fbcdn.net/hphotos-ak-ash4/s720x720/377655_10151298218353553_500025775_n.png",
          "offset_y": 0,
          "offset_x": 0
       }
    }

我认为在您的问题中您输入了错误的页面 ID。

于 2013-03-06T10:56:36.663 回答