Hashtag在Facebook API中搜索 [英] Hashtag search in Facebook API

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

问题描述

如果他们提供了HashTag搜索,我试图在Facebook API中找到它。



我的意思是我在Facebook中搜索查询语言,并在Facebook工具资源管理器中搜索。



任何想法? p>

解决方案

自4月30日起推出Facebook api v2.0,公开发布搜索是不再可用,并返回:

  {
error :{
message:(#11)已经不再使用帖子搜索,
type:OAuthException,
code:11
}
}

根据Facebook changelog v1.0将继续工作,直到2015年4月30日。搜索端点是回到v2文档,有希望他们会重新考虑弃用。



搜索端点是一个ltext搜索,你只需要编码哈希(%23)并通过它来运行你的查询:



Facebook API资源管理器:



您必须在API版本选择器(右上角)中选择 v1.0 Unversioned

  https://graph.facebook.com/search?type=post&q=%23the_hash_tag 



卷曲或其他:



只需删除 /v2.0 / 从url调用unversioned API

  https://graph.facebook.com/search?access_token=YOUR_TOKEN&type = post& q =%23the_hash_tag 


I am trying to find in Facebook API if they provide the HashTag search.

I meant I search in Facebook Query language and searched in Facebook Tool Explorer.

Any Idea ?

解决方案

Since April 30th and the introduction of Facebook api v2.0, public Post search is no longer available and will return :

{
  "error": {
    "message": "(#11) Post search has been deprecated", 
    "type": "OAuthException", 
    "code": 11
  }
}

According to Facebook changelog v1.0 will continue to work until April 30th, 2015. As the search endpoint is back in the v2 doc, there is hope that they will reconsider the deprecation.

The search endpoint is a fulltext search, you just have to encode the hash (%23) and run your query through it :

Facebook API explorer :

You have to select v1.0 or Unversioned in the API version selector (on the top right)

https://graph.facebook.com/search?type=post&q=%23the_hash_tag

Curl or whatever :

Just remove /v2.0/ from the url and call the unversioned API

https://graph.facebook.com/search?access_token=YOUR_TOKEN&type=post&q=%23the_hash_tag

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

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