我正在开始使用Facebook Graph API。我需要使用地方信息搜索产品,我已经按照教程创建了基本的用户应用(生成用户令牌),并且正在尝试运行此简单请求
https://graph.facebook.com/search?
type=place&
center=40.7304,-73.9921&
distance=1000&
q=cafe&
fields=name,checkins,website&
limit=3&
access_token=XXXX
我总是收到这个错误
{
"error": {
"message": "(#33) This object does not exist or does not support this action",
"type": "OAuthException",
"code": 33,
"fbtrace_id": "XXXXX"
}
}
经过调查,我发现答案是Facebook已弃用Facebook API中的地点搜索,你需要要求它才能使用它!