Bookmark Topic Watch Topic
  • New Topic

Sending http request  RSS feed

shivang sarawagi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Friends,

I just need a little help. Kind of stranded don't know how to proceed. If you could please help me out.

I am developing a facebook application in java. For that I have to go through an authentication process for the app.

These are the steps

1.Create a Facebook Application

2. Request redirect_uri=

3.Facebook will redirect you to code=MY_VERIFICATION_CODE

4.Request redirect_uri= client_secret=MY_APP_SECRET&code=MY_VERIFICATION_CODE

5.Facebook will respond with access_token=MY_ACCESS_TOKEN

For the second step I used response.sendRedirect(); and sent the request. But as per the third request when the facebook redirects me to a url its just a page with
success written in it. Now I don't know how to proceed with the 4th step. How do I extract the verification code and send the request again.

Can you please tell is there any way to send the request again, maintaining the flow of the app.

Bear Bibeault
Author and ninkuma
Posts: 66153
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!