【问题标题】:Instagram getting token in iOS issueInstagram 在 iOS 问题中获取令牌
【发布时间】:2016-10-25 05:52:39
【问题描述】:

我使用以下网址向 instagram 发出了请求:

https://instagram.com/oauth/authorize/?client_id=98967dce3d2847c9aefff2342e92d5eb&redirect_uri=http://www.getartup.com/&response_type=code

在浏览器上我可以检索代码为

http://www.getartup.com/?code=0ce2113308ee4376ae10f9f45e9767b6

但在 uiwebview 中发出请求时,我无法捕捉到代码。

任何人都面临同样的问题。

问候。

【问题讨论】:

  • uiwebview - 错误的选择使用 datawithrequest
  • 所以你想访问令牌吗?
  • @Purushothaman 是的,我需要令牌
  • 你试过了吗,完成后告诉我@user3804063
  • @Purushothaman 你没有得到我的问题或者我无法让你理解我的问题

标签: ios swift3 instagram instagram-api


【解决方案1】:

转到他的链接

click here

拿到代码后就可以使用了

curl -F 'client_id=[your_client_id]' -F 'client_secret=[your_secret_key]' -F 'grant_type=authorization_code' -F 'redirect_uri=[redirect_url]' -F 'code=[code]' https://api.instagram.com/oauth/access_token

【讨论】:

    猜你喜欢
    • 2016-10-22
    • 2016-11-13
    • 2017-04-28
    • 2016-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多