开发者

facebook api :: how to get the user ID with FBJS & FBML?

开发者 https://www.devze.com 2023-01-26 22:29 出处:网络
how to get the user ID with FBJS & FBML ? thanks a 开发者_开发知识库lotUse This: First define your constants and:

how to get the user ID with FBJS & FBML ?

thanks a 开发者_开发知识库lot


Use This: First define your constants and:

   $config = array(
            'appId'  => APP_ID,
            'secret' => APP_SECRET,
            'domain' => DOMAIN,
            'cookie' => true
                );
    $facebook = new Facebook($config);
    $uid = $facebook ->getUser();
    $me = $facebook ->api('/me');

Please see the facebook.php class for functions and arguments. Very good and detailed tutorials are here

0

精彩评论

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