Extended permissions
Hello,
I have a problem with the Extended permissions.
I specify on the application settings page, that I want to prompt new Users for "email" permission. But when I connect a new user with Facebook Connect, he only asks the standard access permissions.
Are there other things to do to make this work?
Thanks in advance.
- Forums:

I have enabled extended
I have enabled extended permissions for the email address. The users are prompted, but when they allow it, the email field on the user local profile isn't filled in.
What do I have to do to have the email field filled in automatically? Can I add a small piece of code in my account module that fetches the email for authorized email permissions?
And do you know if the extended permissions box can be customized? For the moment it isn't too friendly and I guess most people will not share their email address. I would like to add a comment to explain why we need the email address.
Thanks !
It will only prompt the first
It will only prompt the first time the app is authorized, not each time the user connects.
The 3.x version of the module will handle this better, as facebook has made extended permission easier to ask for.
how would we go about
how would we go about subscribing the email to a newsletter? say with simple news?
This is the code from simplenews that I think may be applicable:
/**
* Implementation of hook_user().
*/
function simplenews_register_user($op, &$edit, &$account, $category = NULL) {
switch ($op) {
case 'register':
$form = array();
$form['simplenews'] = array(
'#type' => 'fieldset',
'#title' => t('Newsletters'),
'#weight' => 5,
);
foreach (taxonomy_get_tree(_simplenews_get_vid()) as $term) {
if (variable_get('simplenews_register_'. $term->tid .'_show', TRUE)) {
$form['simplenews']['simplenews-'. $term->tid] = array(
'#type' => 'checkbox',
'#title' => t('Subscribe to !newsletter', array('!newsletter' => $term->name)),
'#default_value' => isset($edit['simplenews-'. $term->tid]) ? $edit['simplenews-'. $term->tid] : variable_get('simplenews_register_'. $term->tid .'_optout', FALSE),
);
}
}
return $form;
break;
case 'insert':
case 'update':
foreach (taxonomy_get_tree(_simplenews_get_vid()) as $term) {
if (variable_get('simplenews_register_'. $term->tid .'_show', TRUE) && !empty($edit['simplenews-'. $term->tid])) {
drupal_set_message(t('Signing up for newsletter.'));
simplenews_subscribe_user($edit['mail'], $term->tid, variable_get('simplenews_register_'. $term->tid .'_confirm', FALSE));
}
}
break;
}
}
What code would need to be changed/added and would it be added to the fb_user module?