Facebook API - Using javascript sdk and searching

2019-09-19 19:14发布

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条回答
\"骚年 ilove
2楼-- · 2019-09-19 19:54

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}
查看更多
登录 后发表回答