Facebook Fans Only Content
April 5th, 2010 by moonpixel Share |

Took me a while to find information on how to show content on a Facebook Fan Page visible only to fans.
In a static tab you can use:

<fb:fbml version="1.1">
<fb:visible-to-connection>
Fan only content...
</fb:visible-to-connection>
</fb:fbml>

Or in a facebook application:

<?php if($_REQUEST['fb_sig_is_fan']==1): ?>
Fan only content...
<?php endif; ?>

Tags: , , , , , ,

  • Brent

    the site I’m working on has it’s own facebook page already that has tons of fans, they want me to show content on the website if the user is a fan of their page (which isn’t an application) is this even possible. Something like: if is a fan of ‘xxxxx’ account then show content…

  • Search Moonpixel

  • Blog Categories

  • Ads
    LoungePad
  • AdSense
  • Chitika
  • Subscribe for Updates

  • Moonpixel on Facebook

  • @moonpixel on Twitter