How can i follow specific user those who signed up my website, I don't want them to follow me


#1

How can i follow specific user those who signed up my website, I don’t want them to follow me.

$follow = $connection->post(‘https://api.twitter.com/1.1/friendships/create.json?screen_name=twitterapi’);

I’m trying this “create friendships API” but this is just opposite…
As the page runs the current user follows the "Developer’s ID"
I’m trying to do so the my developer ID should follow the specific user.

Is that possible ? Is it against rule ?


#2

If you were trying to follow the other user you would need to

a) make sure you’re using the access token belonging to the account that is performing the follow action (your app’s account probably?)
b) ask the user to provide their screen name (or if you’re authenticating the user, obtain it from the account/verify_credentials methods)
c) issue this friendships/create request setting the screen_name or user ID to the user that you’re wanting to follow.


#3