I am getting a user's fb profile picture using http.get, but the picture is very small and blurry, how can i get a better picture? Currently this is my code to get the image and store it:
final token = result.accessToken.token;
final graphResponse = await http.get('https://graph.facebook.com/v3.3/me?fields=name,picture,friends,email&access_token=${token}');
final profile = JSON.jsonDecode(graphResponse.body);
print(profile);
setState(() {
userProfile = profile;
_isLoggedIn = true;
});
Then later when i set the data in my db:
'photoUrl':userProfile["picture"]["data"]["url"],
The picture is extremely small and blurry since i'm getting a width and height of 50 inside the url idk how to change that though?