facebook - How to get extended access token for perl app? -



facebook - How to get extended access token for perl app? -

i found on facebook site, need extended access token?

https://graph.facebook.com/oauth/access_token? client_id=app_id& client_secret=app_secret& grant_type=fb_exchange_token& fb_exchange_token=existing_access_token

assuming have access token successful oauth interaction, invoke url, replacing existing_access_token token got initial oauth, , client_id , client_secret app id , app secret app (see https://developers.facebook.com/apps). json containing extended token.

an oauth interaction in context prompts user give app permission access profile data, or deed permissions on behalf of user. in facebook, if redirect users browser

https://www.facebook.com/dialog/oauth/? client_id=your_app_id &redirect_uri=your_redirect_url &state=your_state_value &scope=comma_separated_list_of_permission_names

where scope publish_stream,read_friendlists, user see dialog saying "app x requesting permission write wall , read friends lists. permit or deny". if user permits, json posted your_redirect_url, contain access token. existing_access_token.

have @ facebook oauth docs here https://developers.facebook.com/docs/reference/dialogs/oauth/

facebook oauth-2.0

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -