{"action":"reopened","issue":{"url":"https://api.github.com/repos/criso/fbgraph/issues/97","repository_url":"https://api.github.com/repos/criso/fbgraph","labels_url":"https://api.github.com/repos/criso/fbgraph/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/criso/fbgraph/issues/97/comments","events_url":"https://api.github.com/repos/criso/fbgraph/issues/97/events","html_url":"https://github.com/criso/fbgraph/issues/97","id":125823441,"number":97,"title":"Getting access token & lifetime/expiration ","user":{"login":"sam2x","id":11001928,"avatar_url":"https://avatars.githubusercontent.com/u/11001928?v=3","gravatar_id":"","url":"https://api.github.com/users/sam2x","html_url":"https://github.com/sam2x","followers_url":"https://api.github.com/users/sam2x/followers","following_url":"https://api.github.com/users/sam2x/following{/other_user}","gists_url":"https://api.github.com/users/sam2x/gists{/gist_id}","starred_url":"https://api.github.com/users/sam2x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam2x/subscriptions","organizations_url":"https://api.github.com/users/sam2x/orgs","repos_url":"https://api.github.com/users/sam2x/repos","events_url":"https://api.github.com/users/sam2x/events{/privacy}","received_events_url":"https://api.github.com/users/sam2x/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-10T14:37:48Z","updated_at":"2016-06-06T22:30:30Z","closed_at":null,"body":"Hi,\r\n\r\nI have a nodejs server that must interact with facebook graph api. I have created a developper account on facebook, and now i need to interact with the facebook graph api, i'm not sure what is the correct to get the access_token. \r\n\r\nSo :\r\n1- I have my app developper account\r\n2- I have my app id/secret, I want to generate an accesstoken to request graph api.  \r\n3- I request the graph api with the current accesstoken stored in my nodejs \"conf\"\r\n3'- If the current accesstoken is expire, I want renew automatically the accesstoken on expiration.\r\n\r\nOn the docs it is written : \r\n\r\n    Authentication\r\n    If you get an accesstoken via some other Oauth module like everyauth , connect-auth or node-oauth you can just set the access token directly. Most get calls, and pretty much all post calls will require an access_token\r\n\r\n\"If you get an accesstoken via some other Oauth module\" means for me that the accesstoken can be obtained also via this module ? What about the expiration time, or how can i automatically renew the token if he is invalid, must i use another module ? \r\n\r\nThanks you for your answer.\r\nRegards.\r\n"}}
{"actor":{"display_login":"sam2x"}}