facebook - facebbok js sdk login function not working -
my facebook login doesn't work. open popup ask me permission. allow permission stuck on blank popup , give me js error.
error in event handler (unknown): error: failed execute 'observe' on 'mutationobserver': provided node null. @ observenodes (chrome-extension://ihamlfilbdodiokndlfmmlpjlnopaobi/jslib/rain1/overlay.js:216:13) @ init (chrome-extension://ihamlfilbdodiokndlfmmlpjlnopaobi/version2.js:218:6) @ htmldocument.<anonymous> (chrome-extension://ihamlfilbdodiokndlfmmlpjlnopaobi/version2.js:55:3) @ c (chrome-extension://ihamlfilbdodiokndlfmmlpjlnopaobi/jslib/jquery-1.9.1.min.js:3:7857) @ object.p.add [as done] (chrome-extension://ihamlfilbdodiokndlfmmlpjlnopaobi/jslib/jquery-1.9.1.min.js:3:8167) @ b.fn.b.ready (chrome-extension://ihamlfilbdodiokndlfmmlpjlnopaobi/jslib/jquery-1.9.1.min.js:3:2072) @ b.fn.b.init (chrome-extension://ihamlfilbdodiokndlfmmlpjlnopaobi/jslib/jquery-1.9.1.min.js:3:1602) @ b (chrome-extension://ihamlfilbdodiokndlfmmlpjlnopaobi/jslib/jquery-1.9.1.min.js:3:206) @ object.fetchall0 (chrome-extension://ihamlfilbdodiokndlfmmlpjlnopaobi/version2.js:54:2) @ chrome-extension://ihamlfilbdodiokndlfmmlpjlnopaobi/jslib/rain1/overlay.js:125:51
here code.
<body> <div id="fb-root"></div> <script> window.fbasyncinit = function() { fb.init({ appid : 'xxxxx', status : true, cookie : true, xfbml : true, oauth : true, }); }; (function(d){ var js, id = 'facebook-jssdk'; if (d.getelementbyid(id)) {return;} js = d.createelement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_us/all.js"; d.getelementsbytagname('head')[0].appendchild(js); }(document)); //login function function login() { fb.login(function(response) { if (response.authresponse) { alert('success!'); } console.log(response); }, {scope: 'email'}); } </script> <div onclick="login();">login facebook</div> </body>
anyone have idea it?
ps. tested share/login in old apps. broken too.
i think it's facebook api servers fault, down!
i working normal , minutes ago javascript sdk stop working , stuck blank popup describe.
i able connect php sdk not javascript sdk.
hope helps , little.
Comments
Post a Comment