Instagram api上线后不工作
我最近提交了我的申请进行审查,我现在有了基本权限,我的客户状态是live。但现在我没有收到任何数据。我收到这个错误: “尚未批准此客户端访问此资源。” 我需要改变什么?在我提交审查申请之前,我收到的数据很好。我只是想接收标签数据 这就是我调用api获取令牌的方式Instagram api上线后不工作,instagram,instagram-api,Instagram,Instagram Api,我最近提交了我的申请进行审查,我现在有了基本权限,我的客户状态是live。但现在我没有收到任何数据。我收到这个错误: “尚未批准此客户端访问此资源。” 我需要改变什么?在我提交审查申请之前,我收到的数据很好。我只是想接收标签数据 这就是我调用api获取令牌的方式 https://api.instagram.com/oauth/authorize/?client_id="+clientId+"&redirect_uri="+redirect_uri+"&response_type=
https://api.instagram.com/oauth/authorize/?client_id="+clientId+"&redirect_uri="+redirect_uri+"&response_type=code
这是我在令牌之后获取数据的方式:
$.ajax({
url: 'https://api.instagram.com/v1/tags/'+hashtag+'/media/recent',
dataType: 'jsonp',
type: 'GET',
data: {access_token: token, count: num_photos},
success: function(data){
var images = data.data;
$('.slider ul.images').append('<li><img src="'+images[count].images.standard_resolution.url+'"></li>');
setTimeout(function(){
startSlider();
}, 5000);
},
error: function(data){
console.log(data);
}
});
$.ajax({
网址:'https://api.instagram.com/v1/tags/“+hashtag+”/media/recented',
数据类型:“jsonp”,
键入:“GET”,
数据:{access_token:token,count:num_photos},
成功:功能(数据){
var图像=data.data;
$('.slider ul.images')。追加('');
setTimeout(函数(){
startSlider();
}, 5000);
},
错误:函数(数据){
控制台日志(数据);
}
});
如果您只有basic
权限,则无法访问hashtags API,使用basic
只能获取照片
https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS-TOKEN
要获取hashtagsapi和其他人的帖子,您需要
public\u content
权限。如果没有,您将获得此客户端未被批准在API响应中访问此资源
在Instagram查看我的应用程序之前,我能够获取公共内容。有什么方法可以回去吗?你确定吗?在沙盒模式下?在复习之前,我可以得到我的照片。但我没有基本的权限,我没有任何照片,甚至连我自己的照片都没有。尽管我有很多带有该标签的照片,但我还是不断地犯下这个错误。/users/self/media/recent
这样行吗?@krisak我会这样写吗<代码>https://api.instagram.com/v1/users/self/tags/“+标签+”/media/recent'