Hi! When I try to put in php this link https://api.twitter.com/1.1/friendships/destroy.json?user_id=xxxx I get this message : {“errors”:[{“code”:86,“message”:“This method requires a DELETE or POST.”}]}
I have all my credentials all right $consumerkey, $consumersecret, $accesstoken and $accesstokensecret
When I put the link : https://api.twitter.com/1.1/friends/ids.json?screen_name=“user”
and
https://api.twitter.com/1.1/followers/ids.json?screen_name=“users” I get the all the result Ok but when I want to unfollow a users I get the error. Could someone help me please? I’m desperate and I dont find the solution.
Thanks very much
As the error message clearly states, you need the HTTP Verb DELETE or POST, not GET.
DELETE
POST
GET