Instagram api错误请求ios [英] Instagram api error bad request ios

查看:109
本文介绍了Instagram api错误请求ios的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我在执行身份验证过程时遇到了Instagram的问题。
几周前工作正常,代码没有任何变化。

Hi I am having an issue with Instagram while performing authentication process. It was working fine few weeks ago, nothing changed in the code.

现在面临的问题是,在Instagram登录过程后,safari显示错误Bad request 400,仅此而已。

The issue now facing is that after a login process of Instagram, safari display an error "Bad request 400" and nothing more then that.

推荐答案

最近我遇到了与Instagram api相同的问题。一切都工作正常,突然有400个错误的请求 - 你必须提供一个client_id。

Recently I had the same problem with the Instagram api. Everything was working fine and suddenly 400 bad request - You must provide a client_id.

我调试了OAuth 2.0流程,经过广泛研究后发现我应该设置一个

I debugged the OAuth 2.0 flow and after extensive research realized that I should set a

内容类型:application / x-www-form-urlencoded

标头中的请求。因此,如果其他人遇到此问题,请确保在检索访问令牌的请求中设置了标头。

header in the request. So if someone else has this problem make sure you have the header set in the request that retrieves the access token.

这篇关于Instagram api错误请求ios的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆