小编Dan*_*lik的帖子

使用 Instagram Basic Display API 时出现“无效平台应用”错误

我正在尝试使用 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

8
推荐指数
3
解决办法
1万
查看次数

等于(==)和等于(===)对我不起作用

我正在使用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)

有什么帮助吗?提前致谢。

hash jquery equals-operator

0
推荐指数
1
解决办法
92
查看次数