我试图在facebook connect
的外部网站上添加addrequest我得到JS以下错误:
无效量词
崩溃线:
FB.provide('Cookie',{_domain:null,_enabled:false,setEnabled:function(a){FB.Cookie._enabled=!!a;if(typeof a=='string')FB.Cookie._domain=a;},getEnabled:function(){return FB.Cookie._enabled;},loadMeta:function(){var a=document.cookie.match('\\bfbm_'+FB._apiKey+'=([^;]*)\\b'),b;if(a){b=FB.QS.decode(a[1]);if(!FB.Cookie._domain)FB.Cookie._domain=b.base_domain;}return b;},loadSignedRequest:function(){var a=document.cookie.match('\\bfbsr_'+FB._apiKey+'=([^;]*)\\b');if(!a)return null;return a[1];},setSignedRequestCookie:function(a,b,c){if(!a)throw new Error('Value passed to FB.Cookie.setSignedRequestCookie '+'was empty.');if(!FB.Cookie.getEnabled())return;if(c){var d=FB.QS.encode({base_domain:c});FB.Cookie.setRaw('fbm_',d,b,c);}FB.Cookie._domain=c;FB.Cookie.setRaw('fbsr_',a,b,c);},clearSignedRequestCookie:function(){if(!FB.Cookie.getEnabled())return;FB.Cookie.setRaw('fbsr_','',0,FB.Cookie._domain);},setRaw:function(a,b,c,d){if(d){document.cookie=a+FB._apiKey+'=; expires=Wed, 04 Feb 2004 08:00:00 GMT;';document.cookie=a+FB._apiKey+'=; expires=Wed, 04 Feb 2004 08:00:00 GMT;'+'domain='+location.hostname+';';}var e=new Date(c).toGMTString();document.cookie=a+FB._apiKey+'='+b+(b&&c===0?'':'; expires='+e)+'; path=/'+(d?'; domain='+d:'');}});