theotheraussie
theotheraussie

Reputation: 495

Facebook posts using Facebook API

Using python 3.7

I would like to access all comments available through the facebook api based on a search criteria. I have created a developer account and started playing around with pyfacebook and facebook-sdk. Currently, I have only been able to access content on pages I have admin rights to, by using this posts and this one.

I haven't been able to find out what I need to do to effectively search facebook for some terms of interest and collect all the comments for each object that come out.

Example: I would like to search the facebook page for 'airlines', and then get all the comments for each of the posts and public groups that are listed. I would be happy with just the comments from the posts if necessary.

I would like to do some sentiment analysis and possibly topic identification.

Can someone point me in the right direction?

Upvotes: 0

Views: 201

Answers (2)

user3930879
user3930879

Reputation: 1

According to facebook API docs:

The Page Public Content Access Feature is required to request publicly shared posts of Pages that you are not an admin of.

More information here

Upvotes: 0

andyrandy
andyrandy

Reputation: 73984

There is no way to search for posts or comments in general, you can only get posts of specific Pages and search in those on your own - either by using a Page Token or by applying for Page Public Content Access for Pages you do not own.

Upvotes: 1

Related Questions