2015-05-09 21 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

回答

相关问题