From: =?ISO-8859-2?Q?K=F6teles_Zolt=E1n?= on
Hi all,

I'd like to use Services_Facebook package, but I always get an error:
Services_Facebook_Exception: Invalid parameter in
/pear/Services/Facebook/Common.php on line 161

Here's my code:

require_once 'Services/Facebook.php';

Services_Facebook::$apiKey = 'apikey';
Services_Facebook::$secret = 'secret';

$api = new Services_Facebook();

$auth_token = $api->auth->createToken();
$session = $api->auth->getSession($auth_token);
$api->stream->publish('Test message');

How can I use that and how can I get the correct session data?

Thanks a lot
ZoTyA

ps: what is the "auth_token" in the example:
<code>
* <?php
* require_once 'Services/Facebook.php';
* $api = Services_Facebook();
* // An instance of SimpleXmlElement with the response loaded into it
* // is returned.
* $session = $api->auth->getSession($_GET['auth_token']);
* echo 'uid: ' . (string)$session->uid . '<br />';
* echo 'session_key: ' . (string)$session->session_key . '<br />';
* ?>
* </code>