Updated example.php.  Needs a bit more work but flickr is down - can't test fully.