Recently, the facebook updates have made PhotoMaking II upgrades and migrate to a newer version of image processing. We have integrate the PhotoMaking II with our newly launch deefunia's API for optimisation and also to provide a better experience for our facebook client. You may now play PhotoMaking II in the facebook with your friends without having to upload your photo, but just select your photo in your facebook account or friend's photo to create a surprise for them.
In order to build a photo with deefunia api in php, you will need to do this step.
$url = "http://api.deefunia.com/?a=b&tid=[template id]&suid=[successful upload or copied id]&hash=[the hash of suid];
$built = file_get_contents($url);
$result = json_decode(built, true);