Facebook Auth Token

66 views
Skip to first unread message

stevee

unread,
Mar 6, 2012, 12:22:13 AM3/6/12
to BatchFB
OK. I get the auth token to my browser.

access_token=AAAFKuvApgZAABAAL0EVAvOWd1tJ8v1ZAl0VmxOJXsiCYRKK26VyzRa394LhmPoZCTRbVmpX9XOQH2rASraSj1JbtIDc3ETI8kT80pIO5QZDZD&expires=5178070

And the process stops. I want to open a FacebookBatcher with that
token. What is the usual step to that point. From there I will be
fine.

Thanks

stevee

unread,
Mar 6, 2012, 3:44:56 PM3/6/12
to BatchFB
Here I go answering my own questions again...

Please check out http://code.google.com/p/gwt-gae-fb/

This is a terrific working example of combining GWT,GAE, and FB.
Adding BatchFB should be fun!

Jeff Schnitzer

unread,
Mar 6, 2012, 3:50:28 PM3/6/12
to bat...@googlegroups.com
Sorry - I wasn't sure exactly what question you were asking.  The too-obvious answer is "pass the token into the constructor of FacebookBatcher" but I suspect you have something more complicated in mind :-)

Jeff

stevee

unread,
Mar 6, 2012, 3:59:15 PM3/6/12
to BatchFB
Sorry - I was a bit tired when I posted. What I meant in the first
post was that I was able to manually get the auth_token (in a jsp)
with t steps. First the temp code and then the auth code. Then
facebook just redirected to itself and displayed the
auth_token=xxxxxxx,,,

I realized that I could url encode fetch the token again from
appengine, but the auth_token display to the browser was unwanted
especially in a working app.

My question now is since I know I can pass the auth token to the
constructor - how do I get it? Do I need a url fetch or is there API?

Thanks Again

On Mar 6, 3:50 pm, Jeff Schnitzer <j...@infohazard.org> wrote:
> Sorry - I wasn't sure exactly what question you were asking.  The
> too-obvious answer is "pass the token into the constructor of
> FacebookBatcher" but I suspect you have something more complicated in mind
> :-)
>
> Jeff
>
>
>
>
>
>
>
> On Tue, Mar 6, 2012 at 3:44 PM, stevee <steve...@gmail.com> wrote:
> > Here I go answering my own questions again...
>
> > Please check outhttp://code.google.com/p/gwt-gae-fb/

Jeff Schnitzer

unread,
Mar 6, 2012, 4:03:34 PM3/6/12
to bat...@googlegroups.com
On Tue, Mar 6, 2012 at 3:59 PM, stevee <stev...@gmail.com> wrote:

My question now is since I know I can pass the auth token to the
constructor - how do I get it? Do I need a url fetch or is there API?

I'm afraid I'm still not totally clear what you are asking.  If you are logging in with the Javascript SDK, you can get the accessToken from the authResponse and just pass it to the server.  Or have the server decipher the cookie that the SDK sets when you specify init({cookie:true}).

There is another auth mechanisms ("server-side auth") that involves sending the client on a bunch of redirects, but this seems wholly inferior to the JS SDK login.

Jeff

stevee

unread,
Mar 6, 2012, 4:10:36 PM3/6/12
to BatchFB
You answered it anyway! I was looking for 'beat practice' and was
searching on the server side since there was a server-side auth
mechanism. I will stick to client and pass token to server.

Thanks for your time

Steve

On Mar 6, 4:03 pm, Jeff Schnitzer <j...@infohazard.org> wrote:
Reply all
Reply to author
Forward
0 new messages