You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.
I'm trying to get the event info of the current user (user has authorised access for that), and I get org.springframework.social.ExpiredAuthorizationException: The authorization has expired. when I do fbConnection.getApi(), so it fails to get the Facebook object.
But, the same code works well right after login, just in a different part of the code. I thought that maybe the token expired, so I got a long lived one, but I get the same issue. Any idea why it works right after login, but not 5 mins later? I seem to be doing exactly the same thing in both cases.
I'm trying to get the event info of the current user (user has authorised access for that), and I get
org.springframework.social.ExpiredAuthorizationException: The authorization has expired.
when I dofbConnection.getApi()
, so it fails to get the Facebook object.But, the same code works well right after login, just in a different part of the code. I thought that maybe the token expired, so I got a long lived one, but I get the same issue. Any idea why it works right after login, but not 5 mins later? I seem to be doing exactly the same thing in both cases.
The code that fails is:
The configuration is in XML and looks like this:
Any ideas? I can't seem to find any documentation online on the topic. Thanks.
The text was updated successfully, but these errors were encountered: