Posted By

dunforget on 03/21/11


Tagged

facebook fbml


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

oppey


facebook FBML show different content for fans and non-fans


 / Published in: HTML
 

  1. <link ref="stylesheet" type="text/css" href="LINK_TO_CSS" />
  2.  
  3. <div id="wrapper">
  4. <fb:visible-to-connection>
  5. CONTENT VISIBLE FOR FANS ONLY
  6. <fb:else>
  7. <div id="non-fans">
  8. CONTENT VISIBLE FOR NON FANS
  9. </div>
  10. </fb:else>
  11. </fb:visible-to-connection>
  12. </div>
  13.  
  14. css:
  15. #wrapper {
  16. width:520px;
  17. margin:0 auto; border:0; padding:0;
  18. position:relative;
  19. }
  20. #non-fans {
  21. width:520px;
  22. position:absolute; top:0; left:0;
  23. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: shahzad79 on April 2, 2011

Can anyone please help me regarding this code?

What am i doing wrong here as it is showing same image every time

You need to login to post a comment.