Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode Instagram API:获取用户';s信息(在iOS上)_Xcode_Oauth_Instagram_Instagram Api - Fatal编程技术网

Xcode Instagram API:获取用户';s信息(在iOS上)

Xcode Instagram API:获取用户';s信息(在iOS上),xcode,oauth,instagram,instagram-api,Xcode,Oauth,Instagram,Instagram Api,在用户登录Instagram后,我的应用程序能够获得AccessToken,Instagram会回拨我的应用程序 我现在想获得用户的信息,最重要的是他/她的用户名 我只有访问令牌。我找不到一个在不向当前用户传递{user id}的情况下提供当前用户信息的调用。例如: https://api.instagram.com/v1/users/{user-id}/?access_token=ACCESS-TOKEN 如何仅使用AccessToken(如Twitter、Facebook、Tumblr等)

在用户登录Instagram后,我的应用程序能够获得AccessToken,Instagram会回拨我的应用程序

我现在想获得用户的信息,最重要的是他/她的用户名

我只有访问令牌。我找不到一个在不向当前用户传递{user id}的情况下提供当前用户信息的调用。例如:

https://api.instagram.com/v1/users/{user-id}/?access_token=ACCESS-TOKEN

如何仅使用AccessToken(如Twitter、Facebook、Tumblr等)获取此信息?

要获取当前登录用户的用户详细信息,请使用“self”作为用户id。例如:
https://api.instagram.com/v1/users/self/

这对我很有效

USER\u TOKEN
是您在身份验证期间从instagram收到的令牌

官方文件


您首先需要
从instagram身份验证api访问\u令牌

您能详细解释一下吗?