I am trying to include the functionality of following other users on Twitter from my own app. I know that the URL endpoint is “https://api.twitter.com/1.1/friendships/create.json” and the parameters are screen name or user_id and follow=true.
The docs say that the authentication needed to make this request is “Requires user context,” but no auth_token needs to be passed as a parameter to this URL endpoint. It makes sense that authentication is necessary, since my app is going to make requests on behalf of a user, but I don’t see why one would need to authenticate a user, because no auth_token is necessary for this request.
Maybe I am not understanding exactly how authentication with Twitter works. I am also working with iOS and am probably going to extract the Twitter account from ACAccountStore.
The page in the docs that I am referring to can be found below:
Thanks for any help in advance.