31 May 2010

Facebook Fan Pages – Hide certain content from non-fans

How to Facebook 4 Comments


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

VN:F [1.9.13_1145]
Rating: 0.0/10 (0 votes cast)

What do you think about this?

4 Responses to “Facebook Fan Pages – Hide certain content from non-fans”

  1. Jeff Underwood says:

    Thank you for this valuable post. This worked for me last night when I was tired and bleary-eyed, but now, in the light of day, I’m playing with it in and can’t get any of my images to display. Any idea what might be wrong?

  2. Dynasty Web Solutions says:

    Hello Jeff

    Message me the FBML on Facebook and I will take a look.

    ~Jarrett

  3. noha says:

    Hi,
    Thanks for the valuable post.
    But what if I need to go further; say what if I don’t want non fans to view the photos and albums, or even not see the wall content or the discusion content?
    Is any of these doable?
    please advise..
    Thanks

Leave a Reply

Facebook

Twitter

YouTube