Check if Ouath token is invalid

你。 提交于 2019-12-11 19:27:02

问题


Is there a way to send a request to Facebook and Twitter with a token to see if it has been invalidated. I know if I change my password on facebook I invalidate my tokens so if a user of my app does this I would like to display that as inactive and prompt them to re-auth their account to continue using it.


回答1:


Just use the token against https://graph.facebook.com/me. If it has expired, it'll tell you.



来源:https://stackoverflow.com/questions/8748918/check-if-ouath-token-is-invalid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!