Integrating zend-facebook error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to integrate facebook to show the wall in a site.

ok, i generate the auth_token here:

https://login.facebook.com/code_gen.php?api_key=API_KEY&v=1.0

And put the rest connection configuration here:

$facebookArr = array(
"appapikey" => $appapikey,
"appidkey" => $appidkey,
"appsecret" => $appsecret,
"appcallbackurl" => $appcallbackurl,
'cookie' => true,
'token' => $token

);
        $fb = new FacebookRestClient($facebookArr['appapikey'],
$facebookArr['appsecret']);

        $result = $fb->call_method('facebook.auth.getSession',
                        array('auth_token' =>$facebookArr['token'],
'generate_session_secret' => true));

Its work, but only the first time, if i refresh i get this exception:

exception 'FacebookRestClientException' with message 'Invalid parameter'

If i generate the token again, its work for the first time again.

Please someone have any recent tutorial to integrate facebook to some php
site?



Atenciosamente,
Yuri Yarlei.
www.yuriyarlei.net (under construction)
Programmer PHP, JAVA, CSS, ORACLE 10g, PostgreSQL;
Next step is the SCJP.
"Se você ainda não esta com dor de cabeça, é por que ainda cabe um pouco
mais de conhecimento."

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux