0

I am integrating Facebook SDK in my android app for Facebook login functionality. In onSuccess(), I am checking token expiry time, but time is coming of 2016.

 LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
                @Override
                public void onSuccess(final LoginResult loginResult) {
                String date=String.valueOf(loginResult.getAccessToken().getExpires());
                }
        }

Can anyone suggest how to get proper expiry time?

CopsOnRoad
  • 237,138
  • 77
  • 654
  • 440
Parth
  • 1,908
  • 1
  • 19
  • 37
  • Check https://stackoverflow.com/questions/10149065/find-expire-time-for-an-access-token – Federico Rizzo Apr 13 '18 at 15:50
  • This issue is resolved by removing my current app form facebook account. and try with re-login in my android app. so in my facebook account new entry will create for android app. and it will work fine. – Parth Apr 15 '18 at 06:31

0 Answers0