ios - instagram follow api error -


objective -c / ios

i use follow api of instagram .

set url :https://api.instagram.com/v1/users/{userid}/relationship?access_token={access_token}

parameter string "action=follow" ,and data sending way of post

but , doesn't works. received error.

meta =     {     code = 400;     "error_message" = "this request requires scope=relationships, access token not authorized scope. user must re-authorize application scope=relationships granted write permissions.";     "error_type" = oauthpermissionsexception; }; 

when use login api of instagram , scope = relationships+likes ... data sended

how use instagram follow api in ios.

instagram changed api guidelines since mid april, 2015.

https://help.instagram.com/contact/185819881608116

the oauth 2.0 specification allows specify scope of access requesting user. apps have basic read access default, if plan on asking extended access such liking, commenting, or managing friendships, need specify these scopes in authorization request. note in order use these extended permissions, first need submit app review. more information on how submit app review, please check out documentation of endpoint plan use.

hence need app reviewed instagram first use these extended permissions such likes, comments , relationships.


Comments

  1. I think your article is useful and I wanna add something to your article for anyone interested to know. Since Instagram is a good way to reach higher popularity, go here to see one effective provider for Instagram Likes and other services.

    ReplyDelete

Post a Comment

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -