【问题标题】:Instagram api usersInstagram api 用户
【发布时间】:2017-02-25 09:54:40
【问题描述】:

我已经取得了 public_content 范围的权限。

按照 php 代码,我创建了。

没有数据返回,如果user($id5)不是access_token的所有者。

感谢任何帮助。

-用户存在。

-如果用户是所有者,则有返回数据。

php代码: $json5 = @file_get_contents("https://api.instagram.com/v1/users/{$id5}/?access_token=[MY-ACCESS-TOKEN]");

$json_deco5 = json_decode($json5, true);

print_r($json_deco5);

此代码由以下页面创建:

https://www.instagram.com/developer/endpoints/users/

【问题讨论】:

    标签: instagram-api


    【解决方案1】:

    我找到了不返回数据的原因。
    [MY-ACCESS-TOKEN] 错误。

    时间必须是:
    用户(不是 access_token 的所有者)必须登录 instagram 并同意个人资料数据。
    然后代码将被返回。
    通过此代码,您可以再次访问 API。
    然后将返回 ACCESS-TOKEN。

    http://www.ijtc.co.jp/instagram_api

    【讨论】:

      猜你喜欢
      • 2012-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-27
      • 1970-01-01
      • 2014-06-10
      相关资源
      最近更新 更多