2015-05-09 23 views
1

我追加範圍,這樣的驗證網址>>>範圍=喜歡+評論+關係+基本「;訪問令牌沒有被授權與此範圍內的關係

但在登錄時,它不要求用戶進行關係的權限,只顯​​示「此應用可以接取你的照片」。

裏面的應用程序每當我follwoing,或按

String url="https://api.instagram.com/v1/users/"+userid+"/relationship/?access_token="+MainSingleTon.accesstoken; 
      // key and value pair 
      List<NameValuePair> nameValuePair = new ArrayList<NameValuePair>(1); 
      nameValuePair.add(new BasicNameValuePair("action","unfollow")); 


      JSONObject json=jParser.getJSONFromUrlByPost(url, nameValuePair); 

我得到JSON響應,

unfollwing任何用戶
{"meta":{"error_type":"OAuthPermissionsException","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.","code":400}} 
+0

你應該閱讀API的文檔,並檢查該令牌,你需要追加請求 – Blackbelt

+0

@Blackbelt它是我正在登錄 – Biswatma

+0

後,雖然與其他用戶ID試圖獲得相同的accessToken,我正在得到下面的迴應。 {「meta」:{「error_type」:「APIError」,「error_message」:「此客戶端ID不允許POST關係操作。 \ /instagram.com \/developer \/endpoints \/relationships。「,」code「:400}} --------------我已經在開發者下請求了這個範圍的權限.instgram.com。 從那邊沒有迴應,已經過了10天。 – Biswatma

回答

相關問題