RaviPatidar
RaviPatidar

Reputation: 1486

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

I want to get twitter followers list for that I am using this code

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

            })
        });

this code is working fine on my local and not working on live server on the live server res in undefined please help me if you have any solution for that

Upvotes: 2

Views: 149

Answers (1)

Vinit Solanki
Vinit Solanki

Reputation: 2023

After very long time spend on it got solution, Go to oauth.io, go to Dashboard and add Domains & URLs whitelist on your registered app on oauth.io, there is added 'localhost' by default, but you have to add yours.

Hope its works for you.

Upvotes: 1

Related Questions