Facebook : show to fans, hide from non-fans


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <style type="text/css" media="screen">
  2.  
  3. #wrapper {
  4. width:520px;
  5. margin:0 auto; border:0; padding:0;
  6. position:relative;
  7. }
  8. #non-fans {
  9. width:520px;
  10. position:absolute; top:0; left:0;
  11. }
  12.  
  13.  
  14.  
  15. <div id="wrapper">
  16. <fb:visible-to-connection>
  17. <!--FANS-ONLY CONTENT-->
  18. <fb:else>
  19. <div id="non-fans"><!--CONTENT FOR NON-FANS--></div>
  20. </fb:else>
  21. </fb:visible-to-connection>
  22. </div>
  23.  
  24.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.