Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$sr = $facebook->getSignedRequest();
// check if the page has been liked
if ( !isset( $sr ) || !isset( $sr['page']['liked'] ) || $sr['page']['liked'] != true ) {
// likegate
header( 'Location: likegate.php' );
} else {
// regular content
header( 'Location: content.php' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.