OAuth.popup() 方法不能在现场工作,但在本地主机上工作

OAuth.popup() method not working in live and works on local host

我想获取我正在使用此代码的 Twitter 关注者列表

OAuth.popup('twitter', function(err, res) {
            res.get('/1.1/followers/list.json?       count=500').done(function(data) {

            })
        });

此代码在我的本地运行良好,但在实时服务器上运行不正常 在未定义的实时服务器上 如果您对此有任何解决方案,请帮助我

在花了很长时间解决后,转到 oauth.io,转到仪表板并在 oauth.io 上注册的应用程序上添加域和 URL 白名单,添加 'localhost' 默认情况下,但您必须添加您的。

希望它对你有用。