Yes there is. Decode signed_request sent to your Facebook page.
if (!empty($_REQUEST['signed_request'])) { $signedRequest = $_REQUEST['signed_request']; list($sig, $payload) = explode('.', $signedRequest, 2); $data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true); }
From this you can get the page id.
array (size=4) 'algorithm' => string 'HMAC-SHA256' (length=11) 'issued_at' => int 1321635439 'page' => array (size=3) 'id' => string '19292868552' (length=15) 'liked' => boolean false 'admin' => boolean true 'user' => array (size=3) 'country' => string 'gb' (length=2) 'locale' => string 'en_US' (length=5) 'age' => array (size=1) 'min' => int 21
Then you can use the Graph API to return the page object, which will look like this: https://graph.facebook.com/19292868552
source share