facebuko
El Presidente
Just Getting Started
Member Likes (0)
At the Post Editor (where you create or edit post), the following error is displayed in the Console...
Uncaught ReferenceError: FB is not defined
(anonymous function)
Uncaught ReferenceError: FB is not defined [check_permissions.js:36]
(anonymous function)check_permissions.js:36
f.Callbacks.nload-scripts.php:2
f.Callbacks.o.fireWithload-scripts.php:2
e.extend.readyload-scripts.php:2
c.addEventListener.B
I cannot publish to Facebook.

Responses (5)
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi facebuko,
I've not heard of that one occurring in the editor page myself, is anyone else seeing the same error?
Could you let us know what versions of WordPress and Ultimate Facebook you're using there?
Also, could you try deactivating other plugins and switching to Twenty Eleven theme for a quick moment to see if there's a conflict there?
Thanks,
David
Member (joined November 2011) Likes (0)
I deactivated all the plugins and indeed it is the Ultimate Facebook plugin that causes the following "Uncaught ReferenceError: FB is not defined" errors:
in post.php:870
<div id='fb-root'></div><script type='text/javascript'>
FB.init({
appId: '151197114982017', cookie:true,
status: true,
cookie: true,
xfbml: true,
oauth: true
});
in editor_album.js:215
FB.getLoginStatus(function (resp) {
init();
})
WPMU 3.3.1
Ultimate Facebook 1.6.2.1
Support Chimp (joined March 2010) Likes (0)
Hey again.
As we discussed in the past two threads, I'm continuing here. :-)
http://premium.wpmudev.org/forums/topic/login-with-facebook-2
http://premium.wpmudev.org/forums/topic/login-with-facebook-in-wp-login-does-not-work
As we have tested any plugin conflicts and theme conflicts. and you are on both recent version of WP and the plugin. Would it be possible for me to take a closer look.
If so you can send me log in details and FTP details through the following form:
http://premium.wpmudev.org/contact/
Be sure to mark it to my attention so that I don't miss it. :-)
Thanks.
Member (joined November 2011) Likes (0)
I saw what causing the error.
I changed the locale of the site.
And it seems Facebook does not recognize it.
<script type="text/javascript" src="http://connect.facebook.net/[locale]/all.js?ver=3.3.1"></script>
And returns /*Not valid locale*/
I mark this topic resolved.
BUT mark the topic below OPEN ---
http://premium.wpmudev.org/forums/topic/login-with-facebook-in-wp-login-does-not-work
because ajax keep on loading (even though the user has finally logged in Facebook)
Support Chimp (joined March 2010) Likes (0)
Excellent, glad you got that one sorted.
As the other issue is indeed not related, I will open it again for you. :-)
Take care.
Become a member