Facebook #Hashtag: How to retrive feed by Hastags?

若如初见. 提交于 2019-12-04 14:24:18

问题


As we can get feeds of specific user or fan page, I wanted to know that how can I get feeds from specific Hashtag like in twitter by fql or Graph API ?

I am using Facebook SDK 3.5.2

Thanks.


回答1:


As far as I can tell, searching specific posts by hashtags is currently unavailable. You can still find posts regarding a #hashtag querying a user's stream for a specific message:

SELECT message 
FROM stream 
WHERE 
(source_id IN (SELECT uid2 FROM friend WHERE uid1 = me()) OR source_id=me()  )
AND strpos(lower(message),lower('#hashtag')) >=0


来源:https://stackoverflow.com/questions/17358002/facebook-hashtag-how-to-retrive-feed-by-hastags

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!