Hide certain content from non-fans

Author Tim @ The HyperArts Blog

If you want to show content to your fans, and require that a visitor to your Fan Page become a fan in order to view the content, here’s a nice bit of FBML to render content on your Facebook Fan Page only to fans. Easy as pie….

NOTE: It is easy to get confused about whether or not this working when you’re testing. Remember, if you’re an admin of the Fan Page you’re using this FBML in, and you’re logged in, you will see the content whether or not you’re actually a fan of the Page. People get confused about this and think the tags aren’t working.

ALSO NOTE: If you follow the below instructions and it’s not working, try removing the <fb:fbml version=”1.1″> </fb:fbml> tags. I don’t believe this is necessary now.

FINALLY: If you want to copy and paste my code, MAKE SURE you convert all quotes to plain-text (straight up and down) quotes! Otherwise, your code will not work!

Content for Fans Only

First, on your Static FBML page, begin with the following:

<fb:fbml version=”1.1″>

Wrap 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.

How 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>

Read more: http://www.hyperarts.com/blog/facebook-fan-pages-content-for-fans-only-static-fbml/#ixzz11POPd8hi

Read Full Article with more details HERE

Previous Custom Fan Page With Facebook Video Embeded
Next Facebook Secret Hide Content on Fan Page Until Someone Likes It

About author

Jarrett Gucci
Jarrett Gucci 289 posts

Jarrett Gucci is the owner of Dynasty Web Solutions. A full service Internet presence provider specializing in WordPress development for business owners. Jarrett Gucci along with his team of professionals have designed over 400 WordPress websites. Jarrett Gucci believes strongly in creating websites that are unique, functional and generate referrals.

You might also like

Facebook 0 Comments

Facebook Insights Plug-In on WordPress

ContentsQuick OverviewPrerequisitesInstallationConfigurationKnown Issues Plugins are all about convenience. So if you want a convenient way to track your facebook shares and likes and have access to the “backend pages” facebook

Facebook 0 Comments

5 Common Mistakes Business Professionals Make on Facebook

ContentsMistake #1: Adding Anyone and Everyone as Friends to Boost Your NumbersMistake #2: Using a Picture of Your Dog, Cat, Child or Business Logo as Your Profile PhotoMistake #3: Only

Facebook 0 Comments

Turn Blog Post into Facebook Fan Page

ContentsWith Facebook’s new Social Graph, you can turn your Blog posts into admin pages.What this means:PrerequisitesOne Response to “Turn Blog Post into Facebook Admin Page”Leave a ReplyJoin Our SiteSearch BlogBlog

Facebook 0 Comments

Take Control Of Your Facebook News Feed

Ever since the new Facebook layout it has been a bit confusing how to mange your News Feed. We hope this feed will allow you to take control of your

Facebook 0 Comments

Facebook Connect WordPress Plugin

ContentsDownload the latest version here + New Open Graph Social Plugins (V.3.0.6)Download here (V.2.5.2)Download Thesis theme compatibility for (V.1.2.1) Facebook OpenGraph and Social plugins for WordPress (new Facebook Connect plugin):

Facebook 0 Comments

Killer Facebook Fan Pages: 5 Inspiring Case Studies

Contents1. Pringles2. Coca-Cola3. Starbucks4. Adidas5. Red BullConclusion When Facebook re-launched its fan pages earlier this year, companies were thrilled. At last, there was a solid way to have a presence

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.