Código PHP:
$app_id = 'xxx'; //Facebook App ID
$app_secret = 'xxx'; //Facebook App Secret
require_once "facebook-sdk/autoload.php";
use FacebookFacebookSession;
use FacebookFacebookPageTabHelper;
FacebookSession::setDefaultApplication($app_id,$app_secret);
$pageHelper = new FacebookPageTabHelper();
$user_id = $pageHelper->getUserId();
Facebook\FacebookPageTabHelper Object
(
[pageData:protected] =>
[signedRequest:protected] =>
[appId:protected] => xxx
[appSecret:protected] => xxx
[state] =>
)
De antemano muchas gracias por su colaboracion