Pergunta

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.

Foi útil?

Solução

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>');
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top