开发者

Where is Facebook API's get_loggedin_user function

开发者 https://www.devze.com 2023-01-31 05:25 出处:网络
I am using face book API and i have this below code: include(\"../src/facebook.php\"); // start facebook api with the codes defined in step 1.

I am using face book API and i have this below code:

include("../src/facebook.php");
// start facebook api with the codes defined in step 1.
//$fb=new Facebook(FB_API_KEY,FB_SECRET);
//$fb_user=$fb->get_loggedin_user();

$facebook = new Facebook(array(
  'appId'  => FB_API_KEY,
  'secret' => FB_SECRET,
  'cookie' => true, 
));

$fb_user=$facebook->get_loggedin_user(); 

BUT.. This function get_loggedin_user() is not available in facebook.php class

Please give me some details about this function. How I can use it.开发者_开发百科

Regards


this function is available in api file
i dont remember name but file name contains "api" in it
under this folder
../src/

0

精彩评论

暂无评论...
验证码 换一张
取 消