Testing Liked / Not Liked Effects with Facebook Tab Manager

You can test the display of content to be displayed only to people who have Liked or Not Liked your page with a preview on your own site. In fact, it may be better to some of this testing on your own site than within Facebook because of the way Facebook Tab Manager keeps track of user “Like” status.

When the user opens a page tab on Facebook, Facebook posts a coded signature to your website, which the plugin decodes to determine “Like” status. Facebook Tab Manager stores this information in a session variable, $_SESSION[“like”]. This means that if the user follows a link to another post fbtab posts (still within the Facebook iFrame), the plugin will still “remember” that status. Facebook posts the signature data when it first sends you to the page, but it does not control your navigation within the iFrame. When a user clicks the Like button, Facebook refreshes the page, the session data is updated, and Facebook knows it can display your fan-only content.

If you preview content on your website, the state of that session may be determined by whether you last viewed the content on Facebook in a state of having liked or not liked the page. The session is associated with your domain, regardless of whether the content is viewed from within Facebook.

You can simulate Liked / Not Liked status by adding ?like=1 or ?like=0 to the end of the URL for your tab.

Here’s an example of a simple test post.

Test Post for fblike shortcode

Here is the preview with ?like=0

Preview ?like=0

And here it is with like=1

Preview like=1

For some reason, the notice that you’re in demo mode is repeated multiple times, but the important point is that the correct content is shown for each mode.

I can do the same thing with a Reveal Tab Setup URL by adding &like=1 to the end of the query string

Simulating Reveal Tab like=0

or & like=1

Reveal Tab like=1