I am getting this error as a strange alert on my live website saying: fb_ajax_event called badly. Not Passed apikey. Any ideas on how to fix it?

CommentFileSizeAuthor
Screenshot-27.png281.72 KBdkd903

Comments

Dave Cohen’s picture

The message is coming from these modules, because I ran into that in the past and would like to figure out exactly how it happens. can you reproduce it consistently? Try with the latest release candidate or dev release, it might be fixed.

dkd903’s picture

We are currently using RC7 and keep you posted if we come across this issue again. Thank you :-)

akhan’s picture

Hello,

We are also experiecing this error 'fb_ajax_event called badly. Not Passed apikey.', when a FB user logs out from our site. This issue is consitent.

We are using Druapl 6.20 and Drupal for Facebook 6.x-3.0-rc8.

Would appeciate a resolution quickly as this is holding the launch of our site.

Thanks.

allandk’s picture

Dave, I am getting this contantly on http://www.sejlnet.dk

Dave Cohen’s picture

use firebug or something like it to look for any javascript errors.

Search the source of your web page for "all.js". You should see it only once, in the javascript settings of the page footer.

allandk’s picture

hi

i see it 2 times

<div class="content"><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/apps/application.php?id=111573718857319" width="205" show_faces="true" stream="false" header="false"></fb:like-box>  </div>
</div>

and

<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {"fb":{"ajax_event_url":"http:\/\/www.sejlnet.dk\/fb\/ajax","apikey":"9058d20adaab5730cc8de7c9f137790f","label":"sejlnet","perms":"publish_stream,email","reload_url":"http:\/\/www.sejlnet.dk\/","fb_init_settings":{"xfbml":false,"status":false,"cookie":1,"apiKey":"9058d20adaab5730cc8de7c9f137790f","appId":"111573718857319","session":null,"channelUrl":"http:\/\/www.sejlnet.dk\/fb\/channel"},"controls":"","js_sdk_url":"http:\/\/connect.facebook.net\/da_DK\/all.js"}});
var e = document.createElement('script');
e.async = true;
e.src = Drupal.settings.fb.js_sdk_url;
document.getElementById('fb-root').appendChild(e);

//--><!]]>

</script>

I have 3 consistent errors

1. fb_ajax_event called badly. Not Passed apikey.
2. system mapping existing users with new account.. "_2"
3. system not registering email

Dave Cohen’s picture

Remove this:
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>

allandk’s picture

thanks.. it's strange.. I dont see where its comming from.. not in dff block

allandk’s picture

got it.. thanks mate