Question:

I am using the JavaScript SDK but encountered error "b is undefined" even when I am using the sample code. What is wrong?

 

 

 

Answer:

Appreciate if you can like this page if you find it useful! - Click "Like"

The "b is undefined" error will occur when you try to load both the old JavaScript SDK (which is sometimes referred as the JavaScript Client Library) and the new JavaScript SDK (which can be downloaded from github.com).

  • You can find references to the old JavaScript SDK by searching for the string "FeatureLoader.js.php".
  • The new JavaScript SDK is loaded as "all.js"

 

 

Find my FAQ on Facebook Development useful? Download the PDF for all the FAQs HERE!