2015-08-16 56 views

回答

0

不幸的是,Instagram API不提供端點,它允許將用戶註銷。您引用的答案建議在html頁面中使用攔截url - 它會在iframe中加載註銷url並將其重定向到auth網站。所以你不會真正註銷用戶 - 他將在auth進程之前退出。

的HTML載入頁面可以如下:

<html> 
    <body> 
    <script type="text/javascript"> 
     function load() { 
     window.location.href = "https://YOURS_AUTH_INSTAGRAM_URL"; 
     } 
    </script> 

    <iframe src="https://instagram.com/accounts/logout/"" 
    onload="load()" 
    width="0" height="0"> 
    </iframe> 
    </body> 
</html>