FBML Tricks on Facebook Fan Pages– Show it to Fans & Hide from Non-Fans

There are a lot of pages doing rounds on facebook generating curiosity for people to like it and see what happens next. All i can say is there are tips and tricks used by FBML geeks to make the best use out of it to increase the fan base. If you want to show content to your fans, and require that a non-fan visit to your Fan Page become a fan in order to view the content, here’s a sweet bit of FBML to render content on your Facebook Fan Page only to fans.

Content for Fans Only

When on your Static FBML page, start with the following: <fb:fbml version=”1.1″>

Here is where you will place the content, you want to hide from non-fans within these tags: <fb:visible-to-connection></fb:visible-to-connection>

Then end your page with: </fb:fbml>

And that’s it! The content contained between <fb:visible-to-connection> and </fb:visible-to-connection> will be visible to fans only.

The Simplest Way to show different content to Fans and non-Fans

<fb:fbml version=”1.1″>
<fb:visible-to-connection>
Fans will see this content.
<fb:else>Non-fans will see this content.</fb:else>
</fb:visible-to-connection>
</fb:fbml>

P.S. Take a note of the following before doing anything mentioned above:

Note 1: Please Remember, if you’re an admin of the Fan Page you’re using this FBML in, you will see both the fan and the non fan content regardless of the fact that you actually like the Page or not

Note 2: If you follow the instructions and it’s not working, try removing the <fb:fbml version=”1.1″> </fb:fbml> tags. Sometimes Facebook may change its API.

Now that you know this FBML trick of showing different content to fans and non-fans, let me know if you have more of these to share.

Tags: , , , , , ,

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

5 Responses to “FBML Tricks on Facebook Fan Pages– Show it to Fans & Hide from Non-Fans”

  1. hELP ! 04. Jul, 2010 at 10:23 pm #

    Nicely written :)

    • Gulshi 10. Jul, 2010 at 3:27 pm #

      Awesome stuff!!!
      Please also let me know how to use the javascript for automatically suggesting your page to all your frnds..

  2. TechJuck 20. Oct, 2010 at 11:37 pm #

    Nice trick here Ok apart from that, i just want to say that you’ve put up ainformative article. Thanx for this and Good luck on writing tons more like these.

  3. Puneet 22. Oct, 2010 at 12:35 pm #

    Its very useful. Thanks for sharing this.

  4. captonkirk 10. Nov, 2010 at 2:56 am #

    In attempting to this for my Facebook Page, I can only get <fb:visible-to-connection> to work and am unable to execute the <fb:else> action. I tried both placing the <fb:else> open and close inside my <fb:visible-to-connection> and separate.
    And, yes I did view the Page from a different account in which I'm not an Admin and don't "Like" the page.
    Any suggestions? Thanks

Leave a Reply