Missed error: no polyfill for Facebook JDK object

I get the following error using the JDK to log in to Facebook, pretty sure it just started in the last 1 or 2 days, and is anyone experiencing this too? Here is my JS code and then Error

FB.getLoginStatus(function(response) { if (response.authResponse) { //Fire Login Ajax } else { FB.login(function(response) { if (response.authResponse) { FB.api('/me', function(response) { //Fire Login Ajax }); } }); } }); Uncaught Error: No polyfill registered for object q all.js:24 FB.subclass.process all.js:118 FB.provide._processElement.processor all.js:82 FB.provide._processElement all.js:82 FB.provide.parse all.js:82 q all.js:24 FB.provide.parse 
+4
source share
4 answers

The same thing happened with the site that I had last night. I traced the problem with this line:

 FB.XFBML.parse(); 

If I comment on this line, an error does not occur.

0
source

This is an FB API issue.

JS SDK questions today at 7:42 AM Currently, the all.js file throws an exception on boot. We are currently working on a fix. For more information and updates, please subscribe to error 420667497951980.

Always keep an eye on the FB developer page

0
source

This works if FQL fails.

 FB.api({ method: 'fql.query', query: 'SELECT name, uid, pic_square FROM user WHERE uid=me()' }, function(rows) { // Process here } ) 
0
source

Source: https://habr.com/ru/post/1411484/


All Articles