Hi Stephen

>> you should be able to define a return URL when a user successfully 
>> authenticates that you host

> This is the part that I don't understand.  I guess I create a separate OAuth
> class page that launches when the user authenticates, but how I get the code 
> out of the URL?  I need the code to send back to Facebook so I can get an
> access token.

Right.  In the Scribe example, you are working in the console so a "code" is 
provided that you punch in to your console which gets consumed by a Verifier.  
I don't believe it will work that way in an actual seemless integration.  
Instead, you should be able to define a "OAuth Accept Redirect URL" which 
effectively informs Facebook to post back the credentials to that URL you 
specify.  Here is where I am assuming since I haven't completed the 
integration... instead of getting an access token by sending the Verifer 
instance back to Facebook with the request token, Facebook should post the 
access token to your OAuth Accept Redirect URL which you can consume and set to 
a Token instance.  Again, I'm assuming at this point.  It's possible that your 
OAuth Accept Redirect URL consumes that code and then you're expected to 
request the access token at that point...

Go to your Facebook App in the Developers console and define a URL for the 
OAuth Redirect URI.  Put something together and try it.  I believe it will send 
back an access token in the query string if memory serves.

When I have something working, I'll gladly share it with you to provide 
clarification.

Mike

-----Original Message-----
From: Stephen Walsh [mailto:[email protected]] 
Sent: Monday, February 18, 2013 12:26 PM
To: [email protected]
Subject: Re: Anyone using Wicket-Stuff Facebook

On Mon, Feb 18, 2013 at 1:59 PM, Michael Chandler < 
[email protected]> wrote:

> you should be able to define a return URL when a user successfully 
> authenticates that you host


This is the part that I don't understand.  I guess I create a separate OAuth 
class page that launches when the user authenticates, but how I get the code 
out of the URL?  I need the code to send back to Facebook so I can get an 
access token.

The other part that is confusing to me is that I had an identical JUnit test 
set up to do what you did above, but I'm getting an error:

     java.lang.UnsupportedOperationException: Unsupported operation, please use 
'getAuthorizationUrl' and redirect your users there

on this line Token requestToken = service.getRequestToken();

I'd be really interested to see how you implement with LinkedIn as I assume it 
will be very similar for my implementation.

Thanks, Mike.

_______________________________________
Stephen Walsh | http://connectwithawalsh.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to