How to detect default avatar on facebook?
问题 How to detect default avatar on the link like this: https://graph.facebook.com/'.$id.'/picture?type=large ? Is it the only way to get avatars (male/female) from special prepared profiles and then compare by e.g. md5() ? It's hard to believe this is the only way. 回答1: You can use the redirect=false parameter: https://graph.facebook.com/naitik/picture?redirect=false Then facebook's responce is json and contains this data: { "data": { "url": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn1