Facebook API. List of fans from a page

Discussion in 'Facebook API' started by blogzter, Jun 26, 2010.

  1. #1
    Does anyone have information about if you are able to retrieve the list of people that "Like" a fan page aka. the fans. It was previously open to everyone to get that list but now it seems only the administrators can do it.

    I know facebook is allowing more and better access to developers using the API. I will highly appreciate it if anyone can answer this for me.

    Thanks
     
    blogzter, Jun 26, 2010 IP
  2. SI-Karthis

    SI-Karthis Peon

    Messages:
    102
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use this query:

    $fb_query='SELECT uid FROM page_fan WHERE uid='.$user_id.' AND page_id='.$app_id;
    $fan_result=$facebook->api_client->fql_query($fb_query);

    For PHP anyhow. If $fan_result is equal to NULL, they are not a fan. If it has a value, they are a fan.
     
    Last edited: Jun 30, 2010
    SI-Karthis, Jun 30, 2010 IP
  3. China Morden Lifestyle

    China Morden Lifestyle Peon

    Messages:
    181
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    see other fan page's likes origin ? that's can be done if you are not there admin ?
     
    China Morden Lifestyle, Apr 26, 2011 IP