I'm working on a way to log my user out of my instagram application. Is there a way to do this while redirecting to my homepage and not to the instagram's logout page (https://instagram.com/accounts/logout/) I'm using the cosenary PHP API wrapper.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I would open the instagram logout page in a hidden iframe like this:
$(body).append('<div style="display:none"><iframe src="https://instagram.com/accounts/logout/" width="0" height="0"></iframe></div>');