Service provider responded in error: 301 (Moved Permanently) - Twitter API 1.1

别来无恙 提交于 2019-11-29 13:16:54

Noticed same issue recently. Had to update twitter oauth paths from http to https like this

new DefaultOAuthProvider(
                        "https://api.twitter.com/oauth/request_token",
                        "https://api.twitter.com/oauth/access_token",
                        "https://api.twitter.com/oauth/authorize");

You may also suffer with this problem as I. If you didn't add Callback Url: to Application Type in your application's Settings tab when you create application at dev.twitter.com.

This fix works for me. Hope works for others come across same problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!