Facebook API - Using javascript sdk and searching public posts for hashtags

谁说我不能喝 提交于 2019-12-25 19:01:57

问题


I'd like to bypass the login and run a hashtag search on public posts to return a value of the posts and if possible, the number of total likes.

Is this possible?

I have setup the javascript SDK, but haven't seen any documentation referring to my issue.

Thanks!


回答1:


Searches for public Posts require an User Access Token, see docs here: https://developers.facebook.com/docs/reference/api/search/#access_tokens

So, you'll have to do soemthing like this:

GET /search?q={your_urlencoded_hashtag}&type=post&access_token={your_user_access_token}


来源:https://stackoverflow.com/questions/22475827/facebook-api-using-javascript-sdk-and-searching-public-posts-for-hashtags

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