iOS SLRequest Twitter search credentials access error

146 views Asked by At

My app uses the integrated Twitter APIs on iOS to receive data from the Twitter REST API. The /1.1/friends/list.json and /1.1/users/lookup.json endpoints work perfectly on all devices, but the /1.1/users/search.json endpoint gives a credentials error for a small group of users.

This is the error response which I receive from the SLRequest on these device:

{
    errors = (
        {
            code = 220;
            message = "Your credentials do not allow access to this resource";
        }
    );
}

The HTTP status code is 403.

1

There are 1 answers

1
Annie Gupta On

Please check if your app has read-write access authorization. Also check restricting api.twitter.com to SSL/TLS traffic https://dev.twitter.com/discussions/24239

Also you can refer this link for further troubleshooting Error Code 220 - "Your credentials do not allow access to this resource" When tryig to get retweets