On Drupal 7.2 everything is ok at the status report, but the module doesn't report any connect url.

It only says:

Connect url
Copy this value into Facebook Applications on Connect settings tab

but there's no "value".

Also, the APP SETTINGS tab in the admin is blank.

Comments

eremenko’s picture

the same for me...

eremenko’s picture

I have found out an issue.

fbconnect.admin.inc (58-63):

  $form['fbconnect_connect_url'] = array(
    '#type' => 'item',
    '#title' => t('Connect url'),
    '#description' => t('Copy this value into Facebook Applications on Connect settings tab'),
    '#value' => variable_get('fbconnect_connect_url', $GLOBALS['base_url'] . '/'),
  );

According Form API References (http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....), 'item' element type can't have option 'value', but 'textfield' can. So I changed 'item' to 'textfield' and it works!

rdemol’s picture

it solved the problem here
thanks!

westbywest’s picture

StatusFileSize
new355 bytes

Attaching mod described in comment #2 in patch form.

kitmobley’s picture

patch applied. I see the connect url field but app settings page is still blank

rdemol’s picture

app settings page used to be blank here as well

I think it appeared when I connected my admin account to the facebook app, can't reproduce though

westbywest’s picture

I can confirm that I am unable to modify the Connect URL field, even tho the patch above exposes it. I can set via drush, tho. Possibly still a problem in the form validation code. Also, my App Settings tab is blank too. Should it be?

getamit’s picture

hi joining the group I m also facing this issue I would like to ask one thing my app in facebook not submit so is that I am not having any thing under app settings tab?

rdemol’s picture

your app settings page *should* appear, even if your fb app isn't submitted to the "app directory"

Firehawk777’s picture

I am also facing this issue. I have made all the changes mentioned here and still have a blank settings page though the connect url now shows up on the facebook config page. I am using version 2 of the facebook-php. Please help!

joshua.stout’s picture

This is the function that is failing to produce a form in admin/config/search/fbconnect/fb-app. (What's up with "search" in that URI?)

function fbconnect_fbapp_settings($form, &$form_state) {
  if (!facebook_client()) {
    drupal_set_message(t('Ensure that you entered valid api keys.'), 'error');
    drupal_goto('admin/config/search/fbconnect');
  }

  if (!fbconnect_get_fbuid()) {
    $button_attr = array('text' => t('Connect with your Facebook account'));
    $form['fbconnect'] = array(
      '#value' => fbconnect_render_button($button_attr),
    );

    return $form;
  }

  $form['fbconnect_base_domaine'] = array(
    '#type' => 'textfield',
    '#title' => t('Base Domain Url'),
    '#description' => t('Use this to enable your Facebook Connect implementation to span multiple subdomains (e.g., using example.com would enable  www.example.com, foo.example.com or bar.example.com,).'),
    '#default_value' => variable_get('fbconnect_base_domaine', NULL),
  );

  $form['fbconnect_connect_url'] = array(
    '#type' => 'textfield',
    '#title' => t('Connect Url'),
    '#description' => t('Your site\'s main URL.'),
    '#default_value' => variable_get('fbconnect_connect_url', $GLOBALS['base_url'] . '/'),
  );

  $form['fbconnect_uninstall_url'] = array(
    '#type' => 'textfield',
    '#title' => t('Post-Remove Callback Url'),
    '#description' => t('Facebook pings this URL when a user removes your application.'),
    '#default_value' => variable_get(
      'fbconnect_uninstall_url',
      url('fbconnect/post-remove', array('absolute' => TRUE))
    ),
  );

  $form = system_settings_form($form);
  $form['#submit'][] = 'fbconnect_fbapp_settings_submit';
  return $form;
}
Firehawk777’s picture

Has anyone worked out the fix for the settings page not showing yet????

doka’s picture

Status: Active » Closed (fixed)

Both issues (#2 and #11) are corrected in the 7.x-2.x-dev version from 23.09.

aaronbauman’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
Status: Closed (fixed) » Active

Issue persists in 6.x-2.x-dev

marcoBauli’s picture

#2 works for 6.x-2.x-dev too, just tried

marcoBauli’s picture

Status: Active » Reviewed & tested by the community

bug and fix both still apply on 6.x-2.x-dev