I get this message "XXX call to deprecated FB_Connect.login_onclick." when I click on my "connect with facebook" button. This started happening after I upgraded to the most recent release of Drupal for FB and downloaded the new php libraries from Facebook.

Anyone know how to fix this?

Ntrepid8

Comments

Jakob Stoeck’s picture

I circumvented it like this in modules/fb/fb_connect.js:

@@ -153,7 +153,7 @@ FB_Connect.on_not_connected = function() {
 
 // Deprecated and to be deleted.
 FB_Connect.login_onclick = function() {
-  alert('XXX call to deprecated FB_Connect.login_onclick.');
+  console.log('XXX call to deprecated FB_Connect.login_onclick.');
 };

 
ntrepid8’s picture

Why does the block still call it though? The drupal for facebook site doesnt produce that error. What is different about my site? Why is a Drupal for Facebook block calling a deprecated function?

Dave Cohen’s picture

Because the block is configurable.

Right now, the defaults do not call that function. But, if you've customized the markup for the block, you should edit it again and remove the onclick attribute.

I agree with Jakob, using console.log is better than alert.

ntrepid8’s picture

Thanks Dave. We got it fixed. Your module is great and we are building a really cool app with it!

Ntrepid8

ntrepid8’s picture

Status: Active » Closed (works as designed)

fixed