通过Graph API搜索页面,响应为空 [英] Search for pages via Graph API, response empty
问题描述
当我向图谱 API 发送请求 search?type=page&q=test&access_token=[access_token]
时,响应是空数据.访问令牌是否有问题,或者请求 URI 中是否缺少某些内容?我似乎也找不到搜索方法的全面文档,只有用于地点搜索的文档.
When I send the request search?type=page&q=test&access_token=[access_token]
to Graph API, the response is empty data. Is there a problem with the access token or is there something missing from the request URI? I also can't seem to find a comprehensive documentation of the search method, only that for places search.
这是我得到的回复:
{
"data": [
]
}
推荐答案
Facebook 最近做了很多改变:
Facebook made a lot of changes recently:
https://developers.facebook.com/docs/graph-api/changelog/break-changes#search-4-4
您不能再将/search 端点与以下对象一起使用类型:
You can no longer use the /search endpoint with the following object types:
- 活动
- 组
- 页面
- 用户
这篇关于通过Graph API搜索页面,响应为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!