如何注销instagram API? [英] How to log out of the instagram API?

查看:239
本文介绍了如何注销instagram API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Instagram API身份验证页面没有关于如何注销用户的任何信息:
在使用API​​的iOS应用中,我应该如何允许用户注销?

The instagram API authentication page does not have any information on how to log out a user: On an iOS app using the API, how am I supposed to allow users to log out?

推荐答案

要注销用户,您应该只删除令牌。如果用户不希望您的应用访问其数据,则会取消您的应用访问权限。

To logout the user you should only delete the token. If the user doesn't want your app to access their data they will cancel your app access.

如果您想为用户提供从您的应用程序注销的方式,您可以在登录实施时执行此操作(当然,如果您有后端),否则只需将用户发回登录界面并删除令牌。

If you want to provide a way for the user to logout from your app, you can do it on your login implementation (if you have a backend, of course), otherwise just send the user back to the login screen and delete the token.

这篇关于如何注销instagram API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆