I am using the graph api to get the profile picture of my facebook app user to a specified width and height.
The url: http://graph.facebook.com/'.$userid.'/picture?width=180&height=220
This will return something in json like { "data": { "url": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-frc1/c0.0.553.676/s320x320/998591_136374463234627_573810314_n.jpg", "width": 262, "height": 320, "is_silhouette": false } }
I wish to know how to decode that in php and most appropriately how to get the 'url' in the json string returned. Thanks for helping. Note: I'll store the url in a variable in php, then use the url to imagecreatefromjpeg(GD library) and then use the image and merge it with another image.