我正在尝试使用 Instagram Basic display API,但是当我发布授权代码以获取访问令牌时,我不断收到以下错误
{“error_type”:“OAuthException”,“code”:400,“error_message”:“平台应用无效”}
我下面的所有步骤这里所说- > https://developers.facebook.com/docs/instagram-basic-display-api/getting-started和是的,我现在用的是Instagram的应用程序ID和它的客户端秘密,那是在Products -> Instagram -> Display
和以下是我发送请求的 URL
"https://api.instagram.com/oauth/access_token?client_id=".$app_id."&client_secret=".$app_secret."&grant_type=authorization_code&redirect_uri=".$redirecturi."&code=".$code,
php api facebook-graph-api facebook-apps instagram-graph-api
我正在使用if条件在jquery和==不适合我也不===。:(这是我的代码:
var hash = window.location.hash;
var hash = hash.replace('#', ' ');
alert(hash); /* Returns abc.*/
if( hash === 'abc'){
alert(hash); /* not coming here.*/
$('.tab').removeClass('is-active');
}
Run Code Online (Sandbox Code Playgroud)
有什么帮助吗?提前致谢。