在我的网站上,我使用instagram api获取数据。无论是谁登录了他上传的照片,都会显示在页面上。当我单击logout时,我将终止所有会话,如session_destroy();和session_unset();,它将终止所有会话并重定向到index.php。但当我单击登录时,它会自动登录,而不需要询问用户i和密码。我希望当我终止会话时,帐户也会从instagram中注销。如何做到这一点?这是站点链接sachanrealityhomes.com/technovidemo/instagram/ (单击Create)
发布于 2014-05-14 21:39:10
这是因为您刚刚销毁了您的网站会话,Instagram仍在登录,您必须注销Instagram。你可以通过打开网址:https://instagram.com/accounts/logout注销Instagram
你可以在JS中做这样的事情:
var s = document.createElement("script");
s.src = "https://instagram.com/accounts/logout";
$("head").append(s);
https://stackoverflow.com/questions/23646380
复制相似问题