Hey guys, I've started doing some work on servlets, and I need to implement a facebook login for one of my projects. I created a dummy app on facebook, and I am using restfb for this. First I redirect the user to
https://graph.facebook.com/oauth/authorize?client_id=[MY_APP_ID]&display=page&redirect_uri=[MY_WEBPAGE]&scope=[PERMISSIONS_MY_APP_IS_ASKING_FOR]
to get permission, and if the user clicks allow, then facebook redirects the user to [MY_WEBPAGE]/?code=XXXX, and I need to be able to have access to whatever comes after code. How would I fetch the part after "code" in a servlet?
Thanks