Friday, May 17, 2024
88
rated 0 times [  89] [ 1]  / answers: 1 / hits: 106515  / 14 Years ago, wed, december 29, 2010, 12:00:00

The following code, copied from the Facebook documentation here, is not working for me in Chrome.



<div id=fb-root></div>
<script src=http://connect.facebook.net/en_US/all.js></script>
<script>
FB.init({
appId : 'YOUR APP ID',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>


In the Javascript console I get:



Uncaught ReferenceError: FB is not defined


I'm not having any problems with the SDK in Firefox or Safari, just Chrome.


More From » google-chrome

 Answers
13

I saw a case where Chrome had installed WidgetBlock which was blocking the Facebook script. The result was exactly this error message. Make sure you disable any extensions that may interfere.


[#94453] Monday, December 27, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kieraelsies

Total Points: 718
Total Questions: 103
Total Answers: 104

Location: England
Member since Sun, May 21, 2023
1 Year ago
kieraelsies questions
Tue, Aug 3, 21, 00:00, 3 Years ago
Tue, Feb 23, 21, 00:00, 3 Years ago
Thu, Nov 12, 20, 00:00, 4 Years ago
Wed, Sep 9, 20, 00:00, 4 Years ago
Mon, Sep 16, 19, 00:00, 5 Years ago
;