Facebook API 帖子搜索已弃用? [英] Facebook API Post Search Deprecated?

查看:28
本文介绍了Facebook API 帖子搜索已弃用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 Facebook API 执行搜索并从 Facebook 收到以下错误 - (#11) Post search has been deprecated

我用来查询图形的 URL:https://graph.facebook.com/search?q=search_query&type=post&access_token={access_token}

任何想法为什么会发生这种情况,因为我似乎找不到任何关于帖子搜索被弃用的信息?

解决方案

UPDATE

Graph API v1.0 已完全弃用,不再作为解决方法提供.以下原答案供参考.

<小时>

是的,GraphAPI 2.0 版不再允许您搜索帖子.请参阅更新文档.>

您可以通过将 API 调用更改为:

来继续搜索帖子

https://graph.facebook.com/v1.0/search?q=search_query&type=post&access_token={access_token}

即在 https://graph.facebook.com/

之后添加 v1.0/

I am trying to perform a search via the Facebook API and getting the following error from Facebook - (#11) Post search has been deprecated

URL I am using to query graph: https://graph.facebook.com/search?q=search_query&type=post&access_token={access_token}

Any ideas why this is happening as I can't seem to find anything about the post search being deprecated?

解决方案

UPDATE

Graph API v1.0 has been fully deprecated and is no longer available as a workaround. Original answer below for reference.


Yes, version 2.0 of the GraphAPI does not let you search for posts anymore. See the updated documentation.

You can continue to search for posts by changing your API call to:

https://graph.facebook.com/v1.0/search?q=search_query&type=post&access_token={access_token}

I.e. add v1.0/ after https://graph.facebook.com/

这篇关于Facebook API 帖子搜索已弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆