Do you use the ruby gem facebooker? It's using prototype as it's default JavaScript framework. Call it this way to use jquery instead: <%= init_fb_connect('XFBML', :js => :jquery) %>
hope this helps On Sunday, August 30, 2009, Avishai <avishai.we...@gmail.com> wrote: > > Hi, > > I've been trying to implement Facebook Connect on my site, which uses > jQuery pretty extensively. However, the minute I insert the FB connect > code into my page, I get this error: > > Element.observe is not a function > new()new (line 32) > Element.observe(window,'load', function() {\n > > which is: > > 32 Element.observe(window,'load', function() { > 33 FB_RequireFeatures(["XFBML"], function() { > 34 FB.Facebook.init('xxxxxxxxxxxxxxxxxxxx','/xd_receiver.html', {}); > 35 > 36 }); > 37 }); > 38 > 39//]]> > > Has anyone else experienced this issue and knows how to resolve it? > > Thanks! > > Avishai >