trac750 Exclude Facebook friends who are already using Identi.ca app from invitee list
This commit is contained in:
parent
a373e6f500
commit
7ce7c756e8
@ -40,6 +40,10 @@ class FacebookinviteAction extends FacebookAction
|
|||||||
|
|
||||||
$this->show_header('Invite');
|
$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! ' .
|
$content = 'You have been invited to Identi.ca! ' .
|
||||||
htmlentities('<fb:req-choice url="http://apps.facebook.com/identica_app/" label="Add"/>');
|
htmlentities('<fb:req-choice url="http://apps.facebook.com/identica_app/" label="Add"/>');
|
||||||
|
|
||||||
@ -50,8 +54,9 @@ class FacebookinviteAction extends FacebookAction
|
|||||||
'content' => $content));
|
'content' => $content));
|
||||||
|
|
||||||
$actiontext = 'Invite your friends to use Identi.ca.';
|
$actiontext = 'Invite your friends to use Identi.ca.';
|
||||||
common_element_start('fb:multi-friend-selector', array('showborder' => 'false',
|
common_element('fb:multi-friend-selector', array('showborder' => 'false',
|
||||||
'actiontext' => $actiontext));
|
'actiontext' => $actiontext,
|
||||||
|
'exclude_ids' => implode(',', $exclude_ids)));
|
||||||
|
|
||||||
common_element_end('fb:request-form');
|
common_element_end('fb:request-form');
|
||||||
|
|
||||||
|
@ -70,8 +70,8 @@ class FacebooksettingsAction extends FacebookAction
|
|||||||
common_element_start('p');
|
common_element_start('p');
|
||||||
common_element('fb:add-section-button', array('section' => 'profile'));
|
common_element('fb:add-section-button', array('section' => 'profile'));
|
||||||
common_element_end('p');
|
common_element_end('p');
|
||||||
common_element_end('fb:if-section-not-added');
|
|
||||||
|
|
||||||
|
common_element_end('fb:if-section-not-added');
|
||||||
common_element_start('p');
|
common_element_start('p');
|
||||||
common_element_start('fb:prompt-permission', array('perms' => 'status_update'));
|
common_element_start('fb:prompt-permission', array('perms' => 'status_update'));
|
||||||
common_element('h2', null, _('Allow Identi.ca to update my Facebook status'));
|
common_element('h2', null, _('Allow Identi.ca to update my Facebook status'));
|
||||||
|
@ -48,7 +48,7 @@ class FacebookAction extends Action
|
|||||||
common_element('fb:tab-item', array('title' => 'Home',
|
common_element('fb:tab-item', array('title' => 'Home',
|
||||||
'href' => 'index.php',
|
'href' => 'index.php',
|
||||||
'selected' => ($selected == 'Home')));
|
'selected' => ($selected == 'Home')));
|
||||||
common_element('fb:tab-item', array('title' => 'Invite Friends',
|
common_element('fb:tab-item', array('title' => 'Invite',
|
||||||
'href' => 'invite.php',
|
'href' => 'invite.php',
|
||||||
'selected' => ($selected == 'Invite')));
|
'selected' => ($selected == 'Invite')));
|
||||||
common_element('fb:tab-item', array('title' => 'Settings',
|
common_element('fb:tab-item', array('title' => 'Settings',
|
||||||
|
Loading…
Reference in New Issue
Block a user