I have setup and have facebook connect on 2 sites and am getting the following error when trying to create an account using user/register? Im not too sure what info you need.

Drupal 6.19
latest Drupal for facebook 6.x-3.x-dev

Please see screenshots

CommentFileSizeAuthor
fb2.png21.08 KBSyph
fb1.png25.4 KBSyph

Comments

Dave Cohen’s picture

I need

a) some evidence this is caused by modules/fb

b) how to reproduce.

I haven't seen this before, and I suspect some other module is responsible.

alexmoreno’s picture

same problem here, with fb 3.x-dev and facebook connect active

alexmoreno’s picture

found the bug. If you go to admin/build/fb/fb_connect

and select one of the apps created. Then go to /user/register and "evoilá"

Dave Cohen’s picture

Curious. I still haven't seen it.

Is it the fb_registration.module causing this? Exactly which modules in modules/fb and modules/fb/contrib do you have enabled?

alexmoreno’s picture

it happens when you activate certains permissins, like the "like" cappability or publish on wall.

Dave Cohen’s picture

Title: Invalid key: '-1'. Negative numbers are reserved. » Invalid key: '-1'. Negative numbers are reserved when fb_registration.module enabled.
Component: Facebook Connect » Code

I still can't reproduce it.

Dave Cohen’s picture

If you can reproduce it, use your browser's view source feature on that page. Then search for a tag that starts like this

<iframe src=http://www.facebook.com/plugins/registration.php?

followed by a lot of encoded values. I'm curious to see what's in those encoded values, so please post the entire <iframe> tag here.

shunshifu’s picture

I'm having the same issue

Here's the Iframe tag


<iframe src=http://www.facebook.com/plugins/registration.php?client_id=129190865473&redirect_uri=http%3A%2F%2Fwww.learning-aids.com%2Ftesting-dyscalculia&fields=%5B%7B%22name%22%3A%22name%22%7D%2C%7B%22name%22%3A%22email%22%7D%2C%7B%22name%22%3A%22xmlsitemap_user_priority%22%2C%22type%22%3A%22select%22%2C%22description%22%3A%22User+priority%22%2C%22options%22%3A%7B%221%22%3A%221.0%22%2C%220.9%22%3A%220.9%22%2C%220.8%22%3A%220.8%22%2C%220.7%22%3A%220.7%22%2C%220.6%22%3A%220.6%22%2C%220.5%22%3A%220.5%22%2C%220.4%22%3A%220.4%22%2C%220.3%22%3A%220.3%22%2C%220.2%22%3A%220.2%22%2C%220.1%22%3A%220.1%22%2C%220%22%3A%220.0%22%2C%22-1%22%3A%22Not+in+sitemap%22%2C%22-2%22%3A%22Default%22%7D%2C%22default%22%3A-2%7D%5D 
        scrolling="auto"
        frameborder="no"
        style="border:none;"
        allowTransparency="true"
        width="100%"
        height="360px"> 
</iframe>
Dave Cohen’s picture

Try disabling xmlsitemap, just to see if that is the source of the problem.

shunshifu’s picture

Hi Dave,

yes you are correct. It works with xmlsitemap disabled.

Dave Cohen’s picture

I'm not sure what xmlsitemap is adding to the form. The trick is that not every form element can be mapped directly to the facebook registration form. If you look at fb_registration.module, you'll see it jumps through some hoops to support captcha. Probably it will need to jump through more hoops to support xmlsitemap.

A workaround would be to disable xmlsitemap, or configure it to not affect this form (not sure that's possible), or write your own form_alter hook to remove or change those elements so they work with facebook registration form. It may take some experimenting to learn what works, and I'm not sure when I personally will have time. If anyone comes up with anything, please post patches here.

Katrina B’s picture

Subscribing. I'm having the same problem -- and XML Sitemap is a module we use on all the sites we build, so I really need a solution to this.