【问题标题】:Sign out from Instagram via API call通过 API 调用从 Instagram 退出
【发布时间】:2015-08-16 13:26:39
【问题描述】:

我正在尝试创建一个应用程序以使用意图将图片上传到 Instagram。我的问题是上传后我想从该帐户注销,以便其他用户稍后可以登录。有什么办法吗?

找到这个链接

Instagram Api User Logout

无法理解答案。

【问题讨论】:

    标签: java android android-intent instagram


    【解决方案1】:

    不幸的是,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>
    

    【讨论】:

    • 这个 Instagram URL 不再有效,他们更改了注销过程。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-03
    相关资源
    最近更新 更多