Load the Facebook SDK and place a login button on the page
Log in the user on clicking the button
A handler to fetch the access token