How to get the expiration date of Facebook Account Kit Token?










0















I have an android application with Account Kit for SMS authentication and it creates a TOKEN that expires after a few weeks but I want to know when.



In the documentation it is said how to check if a token is valid or not :
https://developers.facebook.com/docs/accountkit/graphapi/#at-validation?



GET https://graph.accountkit.com/v1.3/me/?access_token=<access_token>


but how to know the expiry date of a token? I searched and found no way.



In this doc it said how to get the expiration date with the Debug Tool but i think it's for facebook graph api token and not account kit wich is different, because i test it and i get always "Malformed token" :
https://developers.facebook.com/docs/facebook-login/access-tokens/debugging-and-error-handling?



In android i can get the Last Refresh and the Refresh Interval in seconds but not the expiry date :



Token last refresh => Mon Nov 12 02:33:19 GMT+01:00 2018



Token refresh interval in seconds => 2592000 (1 month)



How to know the expiry date of a token Account kit? and how to get it never expired ? does that mean that the token expires 1 month after the last refresh ?



Thank you for your answers.










share|improve this question






















  • Well if you know it was last refreshed on Monday, November 12, and you got the info how long the refresh interval is – don’t you have all the info you need already?

    – misorude
    Nov 12 '18 at 11:18











  • I'm not sure, does the "Refresh Interval in seconds" mean that the token will expire December 12 ? but the problem is that the user must launch the application itself to refresh the token, I would like to refresh the token remotely, so that the session does not expire for the user even if he does not connect for 1 month !

    – poulay1253
    Nov 12 '18 at 14:42











  • That’s not how this works, you can not refresh user tokens without user interaction. What would you need a fresh token for, if the user has not visited/used your app for over a month?

    – misorude
    Nov 12 '18 at 15:20















0















I have an android application with Account Kit for SMS authentication and it creates a TOKEN that expires after a few weeks but I want to know when.



In the documentation it is said how to check if a token is valid or not :
https://developers.facebook.com/docs/accountkit/graphapi/#at-validation?



GET https://graph.accountkit.com/v1.3/me/?access_token=<access_token>


but how to know the expiry date of a token? I searched and found no way.



In this doc it said how to get the expiration date with the Debug Tool but i think it's for facebook graph api token and not account kit wich is different, because i test it and i get always "Malformed token" :
https://developers.facebook.com/docs/facebook-login/access-tokens/debugging-and-error-handling?



In android i can get the Last Refresh and the Refresh Interval in seconds but not the expiry date :



Token last refresh => Mon Nov 12 02:33:19 GMT+01:00 2018



Token refresh interval in seconds => 2592000 (1 month)



How to know the expiry date of a token Account kit? and how to get it never expired ? does that mean that the token expires 1 month after the last refresh ?



Thank you for your answers.










share|improve this question






















  • Well if you know it was last refreshed on Monday, November 12, and you got the info how long the refresh interval is – don’t you have all the info you need already?

    – misorude
    Nov 12 '18 at 11:18











  • I'm not sure, does the "Refresh Interval in seconds" mean that the token will expire December 12 ? but the problem is that the user must launch the application itself to refresh the token, I would like to refresh the token remotely, so that the session does not expire for the user even if he does not connect for 1 month !

    – poulay1253
    Nov 12 '18 at 14:42











  • That’s not how this works, you can not refresh user tokens without user interaction. What would you need a fresh token for, if the user has not visited/used your app for over a month?

    – misorude
    Nov 12 '18 at 15:20













0












0








0








I have an android application with Account Kit for SMS authentication and it creates a TOKEN that expires after a few weeks but I want to know when.



In the documentation it is said how to check if a token is valid or not :
https://developers.facebook.com/docs/accountkit/graphapi/#at-validation?



GET https://graph.accountkit.com/v1.3/me/?access_token=<access_token>


but how to know the expiry date of a token? I searched and found no way.



In this doc it said how to get the expiration date with the Debug Tool but i think it's for facebook graph api token and not account kit wich is different, because i test it and i get always "Malformed token" :
https://developers.facebook.com/docs/facebook-login/access-tokens/debugging-and-error-handling?



In android i can get the Last Refresh and the Refresh Interval in seconds but not the expiry date :



Token last refresh => Mon Nov 12 02:33:19 GMT+01:00 2018



Token refresh interval in seconds => 2592000 (1 month)



How to know the expiry date of a token Account kit? and how to get it never expired ? does that mean that the token expires 1 month after the last refresh ?



Thank you for your answers.










share|improve this question














I have an android application with Account Kit for SMS authentication and it creates a TOKEN that expires after a few weeks but I want to know when.



In the documentation it is said how to check if a token is valid or not :
https://developers.facebook.com/docs/accountkit/graphapi/#at-validation?



GET https://graph.accountkit.com/v1.3/me/?access_token=<access_token>


but how to know the expiry date of a token? I searched and found no way.



In this doc it said how to get the expiration date with the Debug Tool but i think it's for facebook graph api token and not account kit wich is different, because i test it and i get always "Malformed token" :
https://developers.facebook.com/docs/facebook-login/access-tokens/debugging-and-error-handling?



In android i can get the Last Refresh and the Refresh Interval in seconds but not the expiry date :



Token last refresh => Mon Nov 12 02:33:19 GMT+01:00 2018



Token refresh interval in seconds => 2592000 (1 month)



How to know the expiry date of a token Account kit? and how to get it never expired ? does that mean that the token expires 1 month after the last refresh ?



Thank you for your answers.







facebook facebook-graph-api token facebook-access-token account-kit






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '18 at 10:45









poulay1253poulay1253

145




145












  • Well if you know it was last refreshed on Monday, November 12, and you got the info how long the refresh interval is – don’t you have all the info you need already?

    – misorude
    Nov 12 '18 at 11:18











  • I'm not sure, does the "Refresh Interval in seconds" mean that the token will expire December 12 ? but the problem is that the user must launch the application itself to refresh the token, I would like to refresh the token remotely, so that the session does not expire for the user even if he does not connect for 1 month !

    – poulay1253
    Nov 12 '18 at 14:42











  • That’s not how this works, you can not refresh user tokens without user interaction. What would you need a fresh token for, if the user has not visited/used your app for over a month?

    – misorude
    Nov 12 '18 at 15:20

















  • Well if you know it was last refreshed on Monday, November 12, and you got the info how long the refresh interval is – don’t you have all the info you need already?

    – misorude
    Nov 12 '18 at 11:18











  • I'm not sure, does the "Refresh Interval in seconds" mean that the token will expire December 12 ? but the problem is that the user must launch the application itself to refresh the token, I would like to refresh the token remotely, so that the session does not expire for the user even if he does not connect for 1 month !

    – poulay1253
    Nov 12 '18 at 14:42











  • That’s not how this works, you can not refresh user tokens without user interaction. What would you need a fresh token for, if the user has not visited/used your app for over a month?

    – misorude
    Nov 12 '18 at 15:20
















Well if you know it was last refreshed on Monday, November 12, and you got the info how long the refresh interval is – don’t you have all the info you need already?

– misorude
Nov 12 '18 at 11:18





Well if you know it was last refreshed on Monday, November 12, and you got the info how long the refresh interval is – don’t you have all the info you need already?

– misorude
Nov 12 '18 at 11:18













I'm not sure, does the "Refresh Interval in seconds" mean that the token will expire December 12 ? but the problem is that the user must launch the application itself to refresh the token, I would like to refresh the token remotely, so that the session does not expire for the user even if he does not connect for 1 month !

– poulay1253
Nov 12 '18 at 14:42





I'm not sure, does the "Refresh Interval in seconds" mean that the token will expire December 12 ? but the problem is that the user must launch the application itself to refresh the token, I would like to refresh the token remotely, so that the session does not expire for the user even if he does not connect for 1 month !

– poulay1253
Nov 12 '18 at 14:42













That’s not how this works, you can not refresh user tokens without user interaction. What would you need a fresh token for, if the user has not visited/used your app for over a month?

– misorude
Nov 12 '18 at 15:20





That’s not how this works, you can not refresh user tokens without user interaction. What would you need a fresh token for, if the user has not visited/used your app for over a month?

– misorude
Nov 12 '18 at 15:20












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53260505%2fhow-to-get-the-expiration-date-of-facebook-account-kit-token%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53260505%2fhow-to-get-the-expiration-date-of-facebook-account-kit-token%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

Syphilis

Darth Vader #20