Facebook图形查询浏览器和脚本中的不同结果

时间:2015-04-08 05:53:52

标签: facebook facebook-graph-api

当我在浏览器中运行以下查询https://graph.facebook.com/search?q=Oinoscent&type=place&center=37.973880,23.732035&distance=100&access_token= $ AUTHTOKEN时,我得到以下结果

{
   "data": [
      {
         "category": "Local business",
         "category_list": [
            {
               "id": "192661127431931",
               "name": "Wine Bar"
            }
         ],
         "location": {
            "street": "45-47 Voulis street",
            "city": "Athens",
            "state": "",
            "country": "Greece",
            "zip": "10558",
            "latitude": 37.974037344191,
            "longitude": 23.732089657161
         },
         "name": "Oinoscent",
         "id": "198585923485643"
      },
<-- cut here -->

正如您所见,该名称是Oinoscent,我们的期望值是198585923485643。

如果我在php脚本中运行相同的查询,我会回复

Array
(
    [data] => Array
        (
            [0] => Array
                (
                    [category] => Local business
                    [category_list] => Array
                        (
                            [0] => Array
                                (
                                    [id] => 2500
                                    [name] => Local Business
                                )

                        )

                    [location] => Array
                        (
                            [street] => 
                            [city] => Athens
                            [state] => 
                            [country] => Greece
                            [zip] => 
                            [latitude] => 37.9739041863
                            [longitude] => 23.7320465521
                        )

                    [name] => Oinoscent-Wine Bar
                    [id] => 262001553922414
                )

不同的名称和不同的ID虽然它是完全相同的查询。有人知道为什么会这样吗?

0 个答案:

没有答案