avatars

How to detect default avatar on facebook?

假装没事ソ 提交于 2020-01-11 06:33:23
问题 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

Find Google+ avatar for given email address without OAuth

做~自己de王妃 提交于 2020-01-09 19:06:54
问题 In my app I want to show the Google+ profile picture for a user. The only function, I found, in the API to get the profile picture needs a userId. However, I only have their email adress and not their Google+ userID. Moreover the person, whose image I want to get, should not be forced to log in and authorize my app, as this person is mostly not identical to the user of the app. So I think I need to get their userId by email. I read through the Google+ API documentation but can't find a way to

should user avatars be saved in a private directory?

拜拜、爱过 提交于 2019-12-13 04:46:57
问题 I am building a community site and i'm currently writing a script that generates thumbnails and stores them on our filesystem. Should I be storing the avatars in a private directory? or is it OK for that type of file to be in a public assets directory like a CDN? why or why not? 回答1: After searching around and looking at other sites. Google Plus in particular does not save their avatars in a private directory. In fact, their avatars are accessed from a public CDN and are served up and mixed

Find Google+ avatar for given email address without OAuth

大城市里の小女人 提交于 2019-11-28 21:26:08
In my app I want to show the Google+ profile picture for a user. The only function, I found, in the API to get the profile picture needs a userId. However, I only have their email adress and not their Google+ userID. Moreover the person, whose image I want to get, should not be forced to log in and authorize my app, as this person is mostly not identical to the user of the app. So I think I need to get their userId by email. I read through the Google+ API documentation but can't find a way to do this, but I can't believe that this is not possible. So my question is: How can I get the Google+