Имам следния проблем:
Ok.
All I need to do is to post the results from 1 test on the user's wall on facebook.
So far I thing that this can be done using this code:
PHP:$message = 'Check out this cute pic.'; $attachment = array( 'name' => 'i\'m bursting with joy', 'href' => 'http://icanhascheezburger.com/2009/04/22/funny-pictures-bursting-with-joy/', 'caption' => '{*actor*} rated the lolcat 5 stars', 'description' => 'a funny looking cat', 'properties' => array('category' => array( 'text' => 'humor', 'href' => 'http://www.icanhascheezburger.com/category/humor'), 'ratings' => '5 stars'), 'media' => array(array('type' => 'image', 'src' => 'http://icanhascheezburger.files.wordpress.com/2009/03/funny-pictures-your-cat-is-bursting-with-joy1.jpg', 'href' => 'http://icanhascheezburger.com/2009/04/22/funny-pictures-bursting-with-joy/')), 'latitude' => '41.4', //Let's add some custom metadata in the form of key/value pairs 'longitude' => '2.19'); $action_links = array( array('text' => 'Recaption this', 'href' => 'http://mine.icanhascheezburger.com/default.aspx?tiid=1192742&recap=1#step2')); $facebook->api_client->stream_publish($message, $attachment, $action_links);
Saw it here - http://blog.theunical.com/facebook-inte … using-php/
But I guess I need this code on 1 .php code withing <?php ?>, and I guess I am going to need a FB Login - so we know who's posting and a require_once facebook.php that is 25 kb.