Вопрос

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