如何从我的网站完全从instagram帐户注销 [英] how to logout completely from instagram account from my website

查看:280
本文介绍了如何从我的网站完全从instagram帐户注销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上,我使用instagram api提取了数据.谁登录了他上传的照片的用户都会显示在页面上.当我单击注销时,我将终止所有会话,例如session_destroy();.和session_unset();并且它使所有会话期满并重定向到index.php.但是,当我单击登录名时,它会自动登录,而无需询问用户名和密码. 我想在会话期满时也从instagram中注销帐户.怎么做? 这是网站链接 sachanrealityhomes.com/technovidemo/instagram/(单击创建")

On my website i fetched data using instagram api. Whoever user loggedin his uploaded photos will display on the page. When i click on logout i expire all session like session_destroy(); and session_unset(); and it expires all sessions and redirect to index.php. But when i click on login, it automatically logged in without asking userid and password. I want when i expire session the accounts also logout from instagram. How to do that? here is site link sachanrealityhomes.com/technovidemo/instagram/ (click on Create)

推荐答案

那是因为您刚刚破坏了您的网站会话,Instagram仍在登录,您必须注销Instagram.您可以通过打开URL来注销Instagram: https://instagram.com/accounts/logout

Thats cause you have just destroyed your website session, Instagram is still logged in, you have to logout of Instagram. You can logout of Instagram by opening URL: https://instagram.com/accounts/logout

您可以在JS中执行以下操作:

You can do something like this in JS:

var s = document.createElement("script");
s.src = "https://instagram.com/accounts/logout";
$("head").append(s);

这篇关于如何从我的网站完全从instagram帐户注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆