简体   繁体   中英

Twitterizer - The remote server returned an error: (401) Unauthorized

Most answers to this questions suggest to make sure your Twitter app is setup as a "web app" and not a "desktop app"... in the current Twitter dev site... I do not see this option.

I also made sure to provide a callback URL when first setting up my app.

Any thoughts?

Use the callback url for your app. For local development, you can use 127.0.0.1 or proxied address like http://www.localhost.com . Then, error will disappear. Thanks.

The API returns a 401 when the OAuth tokens you've provided are revoked/invalid or any time you attempt an action for which you do not have access. For example, if your application is read-only and it attempts to post a tweet, a 401 will be returned.

Twitter does provide an error message and Twitterizer will return that to you when it can. It is in the ErrorMessage property of the response.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM