Removed debugging show_dialog calls.
Re-added Facebook API and placed login procedure for catching un-authorised users.
Added function get_fb_access_token.