it_worker365

   ::  ::  ::  ::  :: 管理

There are two method origin token , you can use any one of them, first one may be easier.

  1. Origin from https://developers.facebook.com

          Tools & Support -> Graph API Explorer -> Get token -> Get access token  choose authority you need, get!

     2.  Origin from Web

          A. Request in your explorer

               https://graph.facebook.com/oauth/authorize?client_id=Your_APP_ID&redirect_uri=***&scope=user_photos,email

               Redirect_url is some url after authorized.

               Scope is authority module which you want (user_birthday, user_religion_politics, user_relationships, user_relationship_details, user_hometown, user_location, user_likes, user_education_history, user_work_history, user_website, user_groups, user_managed_groups, user_events, user_photos, user_videos, user_friends, user_about_me, user_status, user_games_activity, user_tagged_places, user_posts, read_stream, read_mailbox, read_page_mailboxes, rsvp_event, email, ads_management, ads_read, read_insights, manage_notifications, manage_pages, publish_pages, pages_manage_leads, publish_actions, read_custom_friendlists, user_actions.books, user_actions.music, user_actions.video, user_actions.news, user_actions.fitness, public_profile)

               After login Facebook and get authority , URL will redirect to your redirect_url and contains parameter like code=*ABC*

          B. https://graph.facebook.com/oauth/access_token?client_id= Your_APP_ID &redirect_uri=***&client_secret=Your_APP_Secret&code=*ABC*

          Now you will see your access token, and use it. 

         

Debug Tools for Access Token:

When you got a access token , you want to know more information of this token , you can do as follows

   Tools & Support ->Access Token Tool -> User Token line press debug-> input your access token start debug.

Expire, appid, userid and other info will show.

posted on 2015-11-03 13:41  it_worker365  阅读(192)  评论(0编辑  收藏  举报