Handle code in URL param from login redirect

Added logic to handle when Facebook sends "code" as raw URL parameter
after directing users to the oauth login and redirection flow.