Accepting a Twitter friendship request using accept.json

Has anyone successfully automated and accepted a friend request on their Twitter account without having to manually click on the "Confirm" button?

I'm trying to automatically accept friend requests for my limited Twitter account. I understand that the Twitter API call for /friendships/accept.json is limited, and I continue to receive 401 unauthorized access error.

I tried to get the post_authenticity_token value using various methods to then use it in the POST parameters sent to the accept.json request, as indicated in the following message: Twitter API: allow the user to accept the authentication request

but he constantly fails. Any insight or suggestion would be appreciated.

+1
json c # twitter
source share
1 answer

Do not use post_authenticity_token . You are, in fact, a screen scraper that is fragile, against their TOS and does not work. Instead, use standard OAuth authentication that their API officially supports.

0
source share

All Articles