How to log out of the instagram API?

末鹿安然 提交于 2019-12-02 17:26:43

问题


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?


回答1:


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.




回答2:


Im making android app using html5, I did the following: Redirect the user to a html5 page containing following code:

            <div id = "loading" style="text-align: center; display:block; margin-top: 150px;">
                    <img alt="" src="/css/themes/images/ajax-loader.gif" width="46px" height="46px">
                    <br><font style="text-align: center;">Logging Out...</font>
            </div>

        </div>

Then call setTimeout() in which im calling my index.html the homepage after 2seconds.



来源:https://stackoverflow.com/questions/23838785/how-to-log-out-of-the-instagram-api

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