Skip to main content

Posts

Showing posts with the label javascript

Node.Js Resources

Tutorials Node.js guide Node tuts Videos Introduction to Node.js with Ryan Dahl Node.js: Asynchronous Purity Leads to Faster Development Parallel Programming with Node.js Server-side JavaScript with Node, Connect & Express Books The Node Beginner Book Mastering Node.js Up and Running with Node.js Blogs Ryan Dahl's Node blog How To Node DailyJS Nodejitsu blog Podcasts NodeUp Minute with node.js JavaScript resources Crockford's videos (must see!) Essential JavaScript Design Patterns For Beginners JavaScript garden JavaScript Patterns book JavaScript: The Good Parts book Node Modules Wiki List on Github/Joyent/Node (start here last!) Search for registered node.js modules

To get full size profile picture from facebook

The default profile picture from Facebook API: Use this link: http://graph.facebook.com/<user.id>/picture?type=large (note:without using type variable you will receive a 50x50 image of user) The Full Size profile picture: Assumptions The following scripts assume a couple of things: The Facebook Javascript SDK Authenticated Facebook user Permission to access user_photos URL of the full size profile image Graph API method The following Graph API method works by doing two API calls: The first requests all the user albums and gets the ID of the album with the name “Profile pictures”, the second gets the first image from that album. Conveniently, the current profile picture is always the first in the returned list. //Get a list of all the albums FB.api('/me/albums', function (response){ for (album in response.data) { // Find the Profile Picture album if(response.data[album].name == "Profile Pictures"){ // Get a li...