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.

有帮助吗?

解决方案

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>');
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top