【发布时间】:2015-08-16 13:26:39
【问题描述】:
我正在尝试创建一个应用程序以使用意图将图片上传到 Instagram。我的问题是上传后我想从该帐户注销,以便其他用户稍后可以登录。有什么办法吗?
找到这个链接
无法理解答案。
【问题讨论】:
标签: java android android-intent instagram
我正在尝试创建一个应用程序以使用意图将图片上传到 Instagram。我的问题是上传后我想从该帐户注销,以便其他用户稍后可以登录。有什么办法吗?
找到这个链接
无法理解答案。
【问题讨论】:
标签: java android android-intent instagram
不幸的是,Instagram API 没有提供端点,允许用户注销。您引用的答案建议使用带有 html 页面的拦截 url - 它会在 iframe 中加载注销 url 并重定向到 auth 网站。所以你不会真正注销用户 - 他会在身份验证过程之前被注销。
加载页面的Html可以如下:
<html>
<body>
<script type="text/javascript">
function load() {
window.location.href = "https://YOURS_AUTH_INSTAGRAM_URL";
}
</script>
<iframe src="https://instagram.com/accounts/logout/""
onload="load()"
width="0" height="0">
</iframe>
</body>
</html>
【讨论】: