Getting bigger resolution profile image from Twitter API

0

I would like to get user’s profile image from the Twitter API in nodeJS. I actually manage to do it but it comes with a really low resolution. Twitter is an npm package and ‘control’ contains the Oauth credentials. This is the code:

var client = new twitter(control);

app.get('/main', function(req, res){
  client.get('account/verify_credentials', function(error, params) {
  if(error) throw error;
  username = params.screen_name;
  name = params.name;
  image = params.profile_image_url;
  res.render("index.ejs", {username: username, name: name, image: image});
  });
});

How can I change the request so that it would be in a similar form to get a better resolution image.

Answered question
0

Here are all profile images you can get :

Answered question
You are viewing 1 out of 1 answers, click here to view all answers.