Reputation: 9
Can't figure out how to detect if user actually has set his photo or not, because Graph API would return this blank image anyway.
is there is any way to find difference between real photo and this placeholder?
Upvotes: 0
Views: 278
Reputation: 96339
is there is any way to find difference between real photo and this placeholder?
Read the profile picture details via API (https://developers.facebook.com/docs/graph-api/reference/v2.4/user/picture), include the parameter redirect=false
, and the returned data structure will include a property is_silhouette
that indicates whether the picture is just the default placeholder (true
) or the user has their own profile picture set (false
)
Upvotes: 1