Question

I want to confirm whether pulling users's profile pics from all major social networking sites like facebook,twitter,google plus is possible or not.

For facebook, I got the solutions:

https://graph.facebook.com/me/friends?access_token=[oauth_token]&fields=name,id,picture

Which api we can use in twitter,google plus for the same? Is it allowed?

Edited:

For twitter, we can get friends profile pic using

https://api.twitter.com/1.1/friends/list.json
Was it helpful?

Solution

For Google+, you probably want

https://www.googleapis.com/plus/v1/people/me/people/visible

(Providing your auth token, and possibly limiting it to particular fields if you want.) Keep in mind there are some limitations of what you'll actually get back - only public information is available, so if the user has limited the visibility of the circles they share, you won't necessarily see everyone.

See https://developers.google.com/+/api/latest/people/list for full details.

OTHER TIPS

Yes if the site provides an API for doing so It seems you've found twitters and facebooks. In most countries it however is illegal to "scrape" sites for information such as user profile photos using spiders/crawlers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top