I have a Facebook app with a page tab installed on many pages.
I know I can parse, server side, the signed_request and have all the data I need on the page, the current user etc.
However, I just need to know the page ID, or even the page URL, using client side JS (so, no access to signed_request which is sent via POST, no PHP or other server side language).
Is there a way to grab that information alone? Even if unsigned and insecure?
I'd really love to know whether it is possible at all before setting up a server side process, however even if the answer is "no, you can't do it" please give some motivation on why the only way to know the current page should be a server side script, what security violations could possibly arise if Facebook was offering a way to know the current page in an insecure way.