Re: gwt oauth2

35 views
Skip to first unread message

Jason Hall

unread,
Aug 9, 2011, 9:40:12 AM8/9/11
to Barış Gerze, gwt-oaut...@googlegroups.com
Hey Barış,

Thanks for your interest in the gwt-oauth2 project! I've cc'd this thread to the gwt-oauth-2-users mailing list, in case others have the same question later, or in case others have more helpful answers for you.

To get a user's own Facebook profile picture, you'll first need to get an auth token, using the gwt-oauth2 library. Here is the code for that.

Once you have the auth token, rather than WIndow.alert()ing on it like the sample code does, you can get the user's profile picture at https://graph.facebook.com/me/picture?access_token=<AUTH TOKEN> -- set this as the source of an Image, or ImageElement, to display the picture.

Let me know if you have any more questions, I'm glad to help!

- Jason

On Tue, Aug 9, 2011 at 5:26 AM, Barış Gerze <baris...@gmail.com> wrote:
Hi,

How can I get facebook profile picture with this library?

Any code sample for this?

Btw thanks for writing this library.. I am using it.

Regards,

Baris.

Reply all
Reply to author
Forward
0 new messages