If a user visits foobar.com via the Facebook page tab, I would like to show them specific data.
However, if the user goes directly to foobar.com, I would like to show something else.
I could not come up with one good method for this.
Check the signed_request which is sent to every page uploaded to the Facebook tab.
if (isset($signed_request['page'])) { // I'm in a tab }