-
-
Save SecureCloud-biz/712ebccaa714c1ba003e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$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