当使用Android与Chrome,Chrome与Chrome,Macbook与Safari一切正常。问题只在于iPhone。iPhone没有通过隐式验证从Instagram API接收令牌
通常我会得到这样的回应:
http://redirecturl.com/#access_token=ACCESS_TOKEN
与iPhone我只得到:
我需要用JavaScript来访问#值,所以我使用:
location.hash
我也曾尝试以下,以获得完整的地址:
location.href
但没有一个让我通过的Instagram提供的哈希值。
Instagram没有响应#access_token,或者“聪明的”iPhone在收到响应时全部鞭打。
这里是你可以参考文档: - https://www.instagram.com/developer/authentication/ –
这正是什么不工作window.location.hash,只与iPhone –