From 7ce7c756e83386803bea3fb543d5b21fbd9db980 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Mon, 12 Jan 2009 00:42:42 +0000 Subject: trac750 Exclude Facebook friends who are already using Identi.ca app from invitee list --- actions/facebookinvite.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'actions/facebookinvite.php') diff --git a/actions/facebookinvite.php b/actions/facebookinvite.php index b3653c78b..7addc4b31 100644 --- a/actions/facebookinvite.php +++ b/actions/facebookinvite.php @@ -40,6 +40,10 @@ class FacebookinviteAction extends FacebookAction $this->show_header('Invite'); + + // Get a list of users who are already using the app for exclusion + $exclude_ids = $facebook->api_client->friends_getAppUsers(); + $content = 'You have been invited to Identi.ca! ' . htmlentities(''); @@ -50,8 +54,9 @@ class FacebookinviteAction extends FacebookAction 'content' => $content)); $actiontext = 'Invite your friends to use Identi.ca.'; - common_element_start('fb:multi-friend-selector', array('showborder' => 'false', - 'actiontext' => $actiontext)); + common_element('fb:multi-friend-selector', array('showborder' => 'false', + 'actiontext' => $actiontext, + 'exclude_ids' => implode(',', $exclude_ids))); common_element_end('fb:request-form'); -- cgit v1.2.3-54-g00ecf