开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜