Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I want to write a perl script which can help to know who exactly have liked a facebook page.Can we do this? e.g. let's take https://www.facebook.com/reebokBr Can i find out who have liked this page? Any help will be highly regarded. Thanks
  • Comment on script to find out who have liked any FB page

Replies are listed 'Best First'.
Re: script to find out who have liked any FB page
by CountZero (Bishop) on Aug 19, 2012 at 07:41 UTC
    Have a look at Facebook::Manual.

    A better answer is "probably yes", but you will have to go through the Facebook API's which are not for the faint-hearted. FQL (Facebook Query Language) is in all likelihood the best way to go forward.

    You will find a (non Perl) example at https://developers.facebook.com/docs/reference/fql/like/

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics
      can you give an example or sample code to understand rather than the link.
        Facebook::Graph::Query has several examples.

        I cannot give an example with "like" as for that you need to have a valid access_token for the current session user and read_stream permissions to query the user_id field of the "like" table. I have neither of these tokens/permissions.

        CountZero

        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        My blog: Imperial Deltronics