in reply to Re: script to find out who have liked any FB page
in thread script to find out who have liked any FB page

can you give an example or sample code to understand rather than the link.
  • Comment on Re^2: script to find out who have liked any FB page

Replies are listed 'Best First'.
Re^3: script to find out who have liked any FB page
by CountZero (Bishop) on Aug 19, 2012 at 11:59 UTC
    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
      See my problem is that the page for which I want to fetch the "likes" details is not my page. So, I don't have the user id and password of that page.
        You do not need the user-id or password, you need an access-token and you can only get that for public pages or your own pages.

        This is not a restriction of Perl, this is the way Facebook "protects" data. Generally, if on the page you cannot see who has "liked" the page, then there is no way to get this information.

        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
        and then you have your answer