Added support for environments - based on url of current page. Added facebook id test