Is it possible to access information stored about a page that is a site root via a module?
The situation is that I've assigned facebook api & secret variables to a site root, I need a module to be able to access the settings for facebook depending on which site root the page in use is in.

Hence from a module I need to be able to access what page is currently being displayed to the user, Certainly I have $this->Environment->host but host is not unique within tl_page and duplicate records could be found.

Other options such as using GLOBALS is of no use due to one installation of typolight might have multiple fb applications assigned to it. Not is it desirable to assign the facebook settings on each module, this would become tedious.

Any ideas?

EDIT:
And the answer is $this->getRootIdFromUrl();