0

Possible Duplicate:
Facebook Graph API - Friends using application

I'm new programming on Facebook SDK and I've some questions...

I developed an application where a user can login through facebook (it's tested and working nice) and I can show basic information like name, profile picture, etc with no problem. But I want to show him/her how many of his/her friends are also using the application.

Could anybody help me on that please... Thank you!

4

1 回答 1

0

不确定这是否会有所帮助:

// Auto friends from config.
            $sAutoFriendList = getParam('facebook_connect_autofriend_list');
            if ($sAutoFriendList != '') {
                $aAutoFriendList = explode(",",$sAutoFriendList);
                foreach($aAutoFriendList as $iAutoFriend) {
                    if($iAutoFriend > 0) {
                        $this -> _oDb -> addFriend($iProfileId, $iAutoFriend);
                    }
                }
            }
            //Auto-friend members if they are already friends on Facebook
            if (getParam('dbcs_facebook_connect_facebook_friends')) {
                $this -> setFacebookFriends($iProfileId);

这是我网站中使用的代码,因此您需要更改变量。

于 2013-01-05T23:43:49.490 回答