如何从我的网站完全从Instagram帐户注销

问题描述 投票:0回答:1

在我的网站上,我使用instagram api获取数据。用户登录其上传的照片的用户将显示在页面上。当我点击退出时,我会过期所有会话,如session_destroy();和session_unset();它会使所有会话过期并重定向到index.php。但是当我点击登录时,它会自动登录而不会询问用户名和密码。我希望当我到期时,帐户也会从Instagram注销。怎么做?这里是网站链接sachanrealityhomes.com/technovidemo/instagram/(点击创建)

instagram
1个回答
1
投票

多数民众赞成因为你刚刚破坏了你的网站会话,Instagram仍然登录,你必须注销Instagram。您可以通过打开URL登出Instagram:https://instagram.com/accounts/logout

你可以在JS中做这样的事情:

var s = document.createElement("script");
s.src = "https://instagram.com/accounts/logout";
$("head").append(s);
© www.soinside.com 2019 - 2024. All rights reserved.