如何使用最新的 Facebook 搜索 API 获取特定国家/地区的城市列表。 (例如:美国城市列表)
最后一次我能够从以下 URL 获取城市列表,该 URL 不再有效
https://graph.facebook.com/search?country_list['US']&type=adcity&list=global
<小时/>
这就是我检索所有国家/地区列表的方法
https://graph.facebook.com/search?type=adcountry&limit=1000
最佳答案
看看
- https://developers.facebook.com/docs/marketing-api/targeting-search/v2.2#geo
- https://developers.facebook.com/docs/marketing-api/targeting-specs/v2.2#location
恕我直言,不可能获得整个城市列表。您可以使用类似
GET /search?type=adgeolocation&location_types=city&country_code=US&q=new+york
但据我所知,你不能省略 q
参数,否则会导致错误。
关于facebook - 使用最新的 Facebook 搜索 API 获取特定国家/地区的城市列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28714515/