简体   繁体   中英

How can I unlink Twitter from my iOS application

I use ALAccount manager to connect to twitter and make a request. I allow users to share their content to twitter via my app. It works perfectly fine, however if a user decides they do not want to share content to twitter via my app anymore, I would like to create a button that will unlink their twitter account from the app.

How can I achieve something like this?

(Apps that have this feature: Instagram & Vine)

Applications are granted access to Twitter's API using OAuth. When an app is authorized by the user, it's given an OAuth access token. Most iOS OAuth libraries have the feature which stores this token to some persistent storage ( NSUserDefaults , the Keychain, etc.). Find out where it is and delete it, and the user is now logged out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM