Can you paste a dump of complete error stack ? On Sun, Oct 31, 2010 at 10:12 PM, Yuri Yarlei <yuriyarlei@xxxxxxxxx> wrote: > 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." > -- Regards, Nitesh Nandy