{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/805","repository_url":"https://api.github.com/repos/facebook/php-graph-sdk","labels_url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/805/labels{/name}","comments_url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/805/comments","events_url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/805/events","html_url":"https://github.com/facebook/php-graph-sdk/issues/805","id":239419275,"number":805,"title":"Can't get expiration date directly from method getExpiresAt()","user":{"login":"mvcmaker","id":4662121,"avatar_url":"https://avatars1.githubusercontent.com/u/4662121?v=3","gravatar_id":"","url":"https://api.github.com/users/mvcmaker","html_url":"https://github.com/mvcmaker","followers_url":"https://api.github.com/users/mvcmaker/followers","following_url":"https://api.github.com/users/mvcmaker/following{/other_user}","gists_url":"https://api.github.com/users/mvcmaker/gists{/gist_id}","starred_url":"https://api.github.com/users/mvcmaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvcmaker/subscriptions","organizations_url":"https://api.github.com/users/mvcmaker/orgs","repos_url":"https://api.github.com/users/mvcmaker/repos","events_url":"https://api.github.com/users/mvcmaker/events{/privacy}","received_events_url":"https://api.github.com/users/mvcmaker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-06-29T09:33:10Z","updated_at":"2017-06-30T10:20:49Z","closed_at":null,"body":"Hi,\r\nI'm using a customized method to get the access token expiration date as follows:\r\n```\r\npublic function getExpiresAt() {\r\n\t$accessToken = new \\Facebook\\Authentication\\AccessToken($this->accessToken);\r\n\treturn $accessToken->getExpiresAt();\r\n}\r\n```\r\nThe problem is that the resturn of this function is always NULL, even when I pass an expired accessToken, because when I launch the get() method just after call this method, I get the en error (generated from a FacebookResponseException) that tells that session was expired at some date and we are now at new date...\r\n\r\nWhat's happening? Why the getExpiresAt method doesn't returns anything but the get methos yes? What's the way to get the real expiration token withou have to analyze by parsing the expection message from the Exception?"},"comment":{"url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/comments/312231998","html_url":"https://github.com/facebook/php-graph-sdk/issues/805#issuecomment-312231998","issue_url":"https://api.github.com/repos/facebook/php-graph-sdk/issues/805","id":312231998,"user":{"login":"mvcmaker","id":4662121,"avatar_url":"https://avatars1.githubusercontent.com/u/4662121?v=3","gravatar_id":"","url":"https://api.github.com/users/mvcmaker","html_url":"https://github.com/mvcmaker","followers_url":"https://api.github.com/users/mvcmaker/followers","following_url":"https://api.github.com/users/mvcmaker/following{/other_user}","gists_url":"https://api.github.com/users/mvcmaker/gists{/gist_id}","starred_url":"https://api.github.com/users/mvcmaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvcmaker/subscriptions","organizations_url":"https://api.github.com/users/mvcmaker/orgs","repos_url":"https://api.github.com/users/mvcmaker/repos","events_url":"https://api.github.com/users/mvcmaker/events{/privacy}","received_events_url":"https://api.github.com/users/mvcmaker/received_events","type":"User","site_admin":false},"created_at":"2017-06-30T10:20:49Z","updated_at":"2017-06-30T10:20:49Z","body":"@tolbon Sorry, I didn't visited the link you gave me, I can extend the token live by using this code, it's not short, but possible. Thanks!"}}
{"actor":{"display_login":"mvcmaker"}}