Thursday, 15 July 2010

java - How to use Facebook appAccessToken with Spring Social -



java - How to use Facebook appAccessToken with Spring Social -

i'm bit confused how utilize facebook's app access token spring social.

i have app access token making request to:

http://graph.facebook.com/oauth/access_token?client_id=your_app_id&client_secret=your_app_secret&grant_type=client_credentials

i can't utilize (for reasons don't want discuss here) standard spring social connection creation flow , want utilize token (if possible).

my question directed toward graphapi.

so in general can utilize app access token acquired via standard create requests graph api through spring social ?

thanks,

there few things app access token can used for. of operations in graph api fetching user info , hence must obtain user access token. app access token have not work.

if you're planning utilize app access token fetch user's profile, see friends list, or post timeline (or pertains user), you're out of luck. imagine chaos ensue if had read , post on behalf of user obtain app access token! must user's permission kind of thing.

there 3 ways user access token: authorization code grant (which spring social's connectcontroller , appropriate traditional web applications), implicit grant (which more appropriate client-side javascript), , resource owner credentials grant (which appropriate mobile or desktop applications doing browser redirect awkward, difficult, or impossible).

the app access token have intended consume api endpoints application-centric , not pertain given user. there few such operations in facebook's api, 1 comes mind can utilize app token create test users (see https://developers.facebook.com/docs/test_users/).

just of facebook's api user-centric, likewise spring social's facebook api binding. if, however, there's app-centric operation you'd see added spring social, i'd appreciate if you'd allow me know @ https://jira.springsource.org/browse/socialfb.

java facebook spring facebook-graph-api spring-social

No comments:

Post a Comment