I have an app which user can login using twitter and facebook to login, had no issues with twitter as the access token never expires, however facebook does. In my app I can connect fb account if user login twitter and vice versa. Facebook is basically used to share something to user’s wall. The issue that I am having now is that when a user tries to share something using their facebook account and the access token expires it pops up a login screen and after I login it doesn’t share it anymore. So what is the best way to maintain this token? I’ve never had any experience using any other app that asks me to login again… how do they manage with this tok
Share
I believe you have to ask the permission “offline_access”, this makes your access token last until the user decides to remove your application. In which case, you can decide to remove from your database his data or not via the deauthorization URL.