Finished Facebook login code.