locale param不会更改返回地址的语言

时间:2017-11-23 13:04:04

标签: facebook-graph-api

我试图使用Facebook GraphQL API获取有关事件的信息,但似乎记录的locale参数没有产生任何影响 - 无论我将要投入哪些内容,i&i #39;我总是以英语获得活动地点的城市和国家名称。

以下调试信息:

==== Query
  curl -i -X GET \
   "https://graph.facebook.com/v2.11/1971053086509548?fields=place&locale=de_DE&access_token=<access token sanitized>"
==== Access Token Info
  {
    "perms": [
      "user_birthday",
      "user_relationship_details",
      "user_photos",
      "user_friends",
      "manage_pages",
      "pages_show_list",
      "business_management",
      "public_profile",
      "basic_info"
    ],
    "user_id": 584562931,
    "app_id": 145634995501895
  }
==== Parameters
- Query Parameters

  {
    "fields": "place",
    "locale": "de_DE"
  }
- POST Parameters

  {}
==== Response
  {
    "place": {
      "name": "Pogłos",
      "location": {
        "city": "Warsaw",
        "country": "Poland",
        "latitude": 52.25494,
        "longitude": 20.97925,
        "street": "Burakowska 12"
      },
      "id": "1591050677890570"
    },
    "id": "1971053086509548",
    "__debug__": {}
  }
==== Debug Information from Graph API Explorer
- https://developers.facebook.com/tools/explorer/?method=GET&path=1971053086509548%3Ffields%3Dplace%26locale%3Dde_DE&version=v2.11

0 个答案:

没有答案