pass facebook connect session from php to javascript

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-04-15T07:57:41Z Indexed on 2010/04/15 8:03 UTC
Read the original article Hit count: 509

Filed under:
|
|

I'm authenticating via PHP:

// the php facebook api downloaded at step 3
require_once("facebook-client/facebook.php");

// start facebook api with the codes defined in step 1.
$fb=new Facebook( 'XXXXXXXXXXXXXXXXXXXX' , 'a3eaa49141ed38e230240e1b6368254a' );
$fb_user=$fb->get_loggedin_user();

var_dump($fb_user);

And the session is created in PHP. I want to use hte facebook javascript client library from here on out. How do I do this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about facebook