Hi
I want that a div will be shown if a specific facebook page is not liked.

Say I have a page facebook.com/abcd

Now I want that if visitor liked the page then show content otherwise it will show like button.

How can I do that. plz help

You might be thinking of this in a little too simplified of a way bud. Look at it this way...if you're logged into facebook already, your broswer stores a cookie. When you visit a page with a like/share button, your browser sends facebook info about that cookie, which is how facebook knows if you've already liked that page or not.

You could use this cookie to display your div but the problem with that is facebook will delete that cookie after 90 days so it's not a permanent solution.

The most fool proof way would be a facebook app using Facebook's easy to use PHP API. That way you can track who's liked your page using something like facebook usernames of your visitors.

Also, PHP forum would probably be a better place for this question.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.