I have done everything to get a url where i can get the profile pic of a facebook user.
The only problem left now is to get that image into a bitmap object.
Since, http://graph.facebook.com now redirects the connection first (as we can see in the url) to https://fbcdn-profile-a.akamaihd.net/... (something like this).
So, i wanted to ask as to how can i get the bitmap from the url : http://graph.facebook.com/... that redirects to https://fbcdn-profile-a.akamaihd.net/...
Update : The method given by Sahil Mittal works absolutely fine and i would definitely ask you guys to use his method.
As for the method I used in the meantime you can read this answer.
I dont know whether the method given by Sahil Mittal works or not.I havent tried that but i used another code segment which seems to work for me.
But i will get back whether it works or not as soon as i try it.
You are right in saying that http://graph.facebook.com redirects the connection first (as we can see in the url) to https://fbcdn-profile-a.akamaihd.net/, but-
So, if you try to load images from https instead of http : "https://graph.facebook.com/USER_ID/picture"; since image's url is "https://fbcdn-profile-a.akamaihd.net/....",
BitmapFactory.decodeStream
shall work again to get you the bitmap.Here's the code-
Hope that helps. Good luck.