为什么Instagram API返回空结果?

时间:2016-01-31 07:22:02

标签: python instagram instagram-api

1)我处于沙盒模式

2)应用程序具有服务器端(显式)流

3)在“管理客户端”中激活“禁用隐式OAuth”复选框

4)我已授权我的沙盒用户--InsertApp API使用access_token和用户

返回数据

当我尝试从关系端点中检索一些数据时,Instagram API将返回一个空数据:

df2 <- df[with(df, rev(order(Label, factor(group, Label)))),]  #Reverse reorder
df2$Label2 <- factor(df2$Label, as.character(df2$Label))       #Order of appearance

ggplot(df2, aes(x=Label2, y=OR, ymin=CI1, ymax=CI2, group=group, color=group)) + 
    geom_pointrange() + coord_flip()

代码:

{"pagination":{},"meta":{"code":200},"data":[]}

当我在浏览器中打开网址时 - 同样的情况

怎么了?

1 个答案:

答案 0 :(得分:6)

只有沙盒授权用户才会在API响应中返回,如果您添加一个跟随沙箱用户的用户,那么该用户将在API响应中返回,这是沙箱模式的限制:

https://www.instagram.com/developer/sandbox/

  

数据仅限沙盒用户和20个最新媒体   每个沙箱用户

相关问题