首页 > 解决方案 > 无法使用 Graph Api 获取页面的电子邮件

问题描述

我正在使用资源管理器测试此请求“ ::page_id::?fields=id,name,emails”,但它返回此错误消息:

{
  "error": {
    "message": "(#100) Tried accessing nonexisting field (emails) on node type (PlaceInformation)",
    "type": "OAuthException",
    "code": 100,
    "fbtrace_id": "Hzq4cKMXlI1"
  }
}

我已经尝试过使用contact_email 和user_support_email,但也没有用。

获取页面电子邮件的正确字段是什么?

标签: facebook-graph-api

解决方案


仔细查看错误消息,它说node type (PlaceInformation)。我假设您正在尝试使用地方,而不是页面。这些是 Places 可用的字段:https ://developers.facebook.com/docs/graph-api/reference/place/


推荐阅读