通过Graph API搜索页面,响应为空 [英] Search for pages via Graph API, response empty
问题描述
当我将请求 search?type = page& q = test& access_token = [access_token]
发送到Graph API时,响应为空数据。访问令牌是否存在问题,或者请求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 / breaking-changes#search-4-4
您将无法再使用/ search端点,其对象为
类型:
You can no longer use the /search endpoint with the following object types:
- 事件
- group
- 页面
- 用户
- event
- group
- page
- user
这篇关于通过Graph API搜索页面,响应为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!