Possible Duplicate:
How to check if a user likes my Facebook Page or URL using Facebook's API
how can i show or display information only if the user is fan or likes my page without using fbml. I have some old code there.
Something like:
<fb:visible-to-connection>
Show content to the user
<fb:else>
<div style="position:absolute; top:0; left:0;">
Like the page inorder to view the content.
</div>
</fb:else>
</fb:visible-to-connection>
But fbml has been deprecated, I need to this by javascript without using server related code, like php or aspx.
Thanks for any help.
And forgive my bad english.