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

后端 未结 2 1377
迷失自我
迷失自我 2020-12-20 13:20

I get this error when trying to connect to Twitter? Why?

02-18 16:40:33.270: W/System.err(7167): oauth.signpost.exception.OAuthCommunicationException: Commun         


        
相关标签:
2条回答
  • 2020-12-20 14:12

    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.

    0 讨论(0)
  • 2020-12-20 14:17

    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");
    
    0 讨论(0)
提交回复
热议问题