How to only display content if Facebook user is a fan of page (FBML)?

Discussion in 'Programming' started by Daniel591992, Mar 3, 2010.

  1. #1
    Hey,

    How could I only display content to fans of a Facebook page? I can't seem to find the conditional statement that would do the trick.
     
    Daniel591992, Mar 3, 2010 IP
  2. moonpixel

    moonpixel Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    hey,
    I see this post was a while ago, but just in case anyone looking for this -
    on a static page you can just use:
    <fb:fbml version="1.1">
    <fb:visible-to-connection>
    Stuff vsible if not a fan...
    </fb:visible-to-connection>
    </fb:fbml>
     
    moonpixel, Mar 28, 2010 IP
  3. moonpixel

    moonpixel Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    <?php if($_REQUEST['fb_sig_is_fan']==0): ?>
    Stuff...
    <?php endif; ?>
    PHP:
     
    moonpixel, Mar 28, 2010 IP