it is passed as a part of a signed_request to your app, it is called "page":
A JSON object containing the page id string, the liked boolean if the
user has liked the page, the admin boolean if the user is an admin.
Only available if your app is an iframe loaded in a Page tab.
https://developers.facebook.com/docs/authentication/signed_request/