簡體   English   中英

Instagram關系(POST)api在iOS應用程序中無效

[英]Instagram relationship (POST) api is not working in iOS app

我正在使用Instagram API開發iOS iPhone應用程序,其中用戶允許使用Instagram Relationship API關注其他用戶帳戶,並且我總是收到此API請求的錯誤:

API請求:

https://api.instagram.com/v1/users/157xxxx469/relationship?access_token=169527xxxx.f71bc56.fb2a414a0ee7469ca381a3659f5cxxxx

收到的回復:

 { "meta": { "error_type": "OAuthPermissionsException", "code": 400, "error_message": "This request requires scope=relationships, but this access token is not authorized with this scope. The user must re-authorize your application with scope=relationships to be granted write permissions." } } 

當我在登錄時獲得范圍授權時,我使用以下URL來獲取請求:

https://api.instagram.com/oauth/authorize/?client_id=56a6xxxx6a8b41f288477fxxxxea253e&redirect_uri=http://localhost:8888/MAMP/&response_type=token&scope=likes+comments+relationships

但令我驚訝的是,用戶只要求訪問基本信息權限而不是關系,評論等。

請參考下面的截圖:

在此輸入圖像描述

我不知道我是否被授予使用Instagram Relationship API的特權; 我怎么可能檢查一下?

另外,我做錯了什么,如何解決?

獲得批准后,您將在授權屏幕中看到權限,如下所示:

Follow/Unfollow other users

在此輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM