How to log out of the instagram API?

前端 未结 2 1226
遥遥无期
遥遥无期 2021-01-29 01:28

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?

相关标签:
2条回答
  • 2021-01-29 02:15

    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.

    0 讨论(0)
  • 2021-01-29 02:19

    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.

    0 讨论(0)
提交回复
热议问题