Reputation:
is there any way to get profile pic of a user
as it appears into timeline profile(the one shown into 135px*135px
box)?
Upvotes: 2
Views: 718
Reputation: 835
You can just take the result from /user/picture
API call, which will be something like https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/275322_662949469_2141062370_q.jpg
and replace the _q
for _n
, so it will be:
https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/275322_662949469_2141062370_n.jpg
Actually it's not 135x135, but that's the one facebook uses on timeline. In my case it's scaled down by 136x125 inside a 125x125 div
with overflow: hidden
, so everything more than 125x125 is hidden. You can take a look using DOM Inspector or Firebug
Upvotes: 2