I am creating a java application with RestFB. At this url, Facebook explains how to authenticate using facebook connect.
Basically, the steps are the following:
- Redirect to facebook as the example.
2.If I invoke a HTTP request using the above URL, I get the following html response.
3.But if I invoke the above link via my browser, I get the following url which contains the OAuth code.
What I really want is the OAuth code which I am able to obtain only through the browser 3, I am unable to get that code via 2. I would like to programatically fetch the OAuth code in my standalone java program. How do I achieve that?