skip to Main Content

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?

2

Answers


  1. 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.

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search