このAPIリクエストを使用して、facebook places apiを使用してすべてのFITNESS_RECREATIONセンターを取得しています。 1)フィルタリングし、どの国=マレーシアの要求を取得するには:facebook places apiでフィルターを配置する方法
私は二つのことをやろうとしています。 2)5000回以上の返品のリストを取得する。 Facebookは応答を最大100に制限しているようだ。このための回避策はあるのだろうか。
これはサンプルの応答です:
{
"data": [
{
"name": "Recreation Fitness",
"location": {
"city": "Long Beach",
"country": "United States",
"latitude": 33.833224817855,
"longitude": -118.1849527359,
"state": "CA",
"street": "4234 Atlantic Ave",
"zip": "90807"
},
"id": "420888681274648"
},
{
"name": "Extreme Fitness- West Coast Recreation",
"location": {
"city": "Singapore",
"country": "Singapore",
"latitude": 1.30975,
"longitude": 103.764183,
"street": "12 West Coast Walk \u0040 West Coast Recreation",
"zip": "127157"
},
"id": "982344108463873"
},
{
"name": "TMP Fitness Sports and Recreation Club",
"location": {
"city": "Singapore",
"country": "Singapore",
"latitude": 1.3196699,
"longitude": 103.84262,
"street": "55 Newton Road, #05-02 Revenue House",
"zip": "307987"
},
"id": "336128976479984"
},
{
"name": "Fitness First Platinum Trinoma",
"location": {
"city": "Quezon City",
"country": "Philippines",
"latitude": 14.654392396144,
"located_in": "322295778137",
"longitude": 121.03377838573,
"street": "North Ave"
},
"id": "516897225075490"
},
{
"name": "Launceston PCYC Weight Gym, Fitness & Recreation Centre",
"location": {
"city": "Newstead",
"country": "Australia",
"latitude": -41.44732,
"longitude": 147.15653,
"state": "TAS",
"street": "146 Abbott St",
"zip": "7250"
},
"id": "169928146489153"
}
],
"paging": {
"cursors": {
"after": "NAZDZD"
},
"next": "https://graph.facebook.com/v2.10/search?access_token=737434766443796\u00257Cb10e3ea49284dc815b25910e6fb39aea&pretty=1&fields=name\u00252Clocation&q=FITNESS_RECREATION&type=place&limit=5&after=NAZDZD"
}
}
マレーシア=国のためにフィルタリングするために、この形式を使用しようとしました: https://graph.facebook.com/search?type=place&q=FITNESS_RECREATION&fields=name,location{country=Malaysia}&limit=5000&access_token=APP_ID|secret_key しかし、エラーが発生しました: { "エラー":{ "メッセージ": "(#100)は、ノードタイプ(場所)に存在しないフィールド(国=マレーシア)にアクセスしようとしました"、 "タイプ" : "OAuthException"、 "code":100、 "fbtrace_id": "DfofQreXq/8" } } –