Вопрос

Using this excellent Twitter for AS3 library https://github.com/susisu/Twitter-for-AS3/blob/master/README_en.md

Once a user is logged in to their account, I need to be able to automatically log them out after a specified action. In my case uploading an image.

Does anyone know how to do this with the latest twitter API?

Нет правильного решения

Другие советы

Log them out of Twitter or your app? The former, I guess would be pretty annoying. For the latter, is https://dev.twitter.com/docs/api/1.1/post/oauth2/invalidate_token what you're looking for?

Allows a registered application to revoke an issued OAuth 2 Bearer Token by presenting its client credentials. Once a Bearer Token has been invalidated, new creation attempts will yield a different Bearer Token and usage of the invalidated token will no longer be allowed.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top