Determine if the request went through the Facebook page tab

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.

+3
source share
1 answer

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  
}
+5
source

All Articles