PHP Instagram Api User Logout?

2019-05-19 03:43发布

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条回答
一夜七次
2楼-- · 2019-05-19 04:21

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>');
查看更多
登录 后发表回答