我在这里遇到麻烦......
我刚刚在我的网站上设置了一个facebook opengraph api,当我使用我的facebook帐户时效果很好但是当我使用我的另一个帐户测试时我收到错误消息...
我在尝试访问http://www.kiosban.com/jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/时遇到错误[object object],当我试图查看我的GoogleChrome控制台时出现此错误
Uncaught ReferenceError: jQuery is not defined /jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/:1115
Uncaught ReferenceError: $ is not defined /jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/:1716
Uncaught SyntaxError: Unexpected token < index.php:1
Please specify a ShareThis Publisher Key
For help, contact support@sharethis.com buttons.js:1
Unknown RPC service: undefined apis.google.com/_/apps-static/_/js/gapi/plusone/rt=j/ver=l9xafNDlycA.en_US./sv=1/am=!PemfnfjrL2yI81ARQg/d=1/rs=AItRSTPblCJvoWHsMeVNOsKiKGakP1copQ/cb=gapi.loaded_0:206
Unknown RPC service: undefined apis.google.com/_/apps-static/_/js/gapi/plusone/rt=j/ver=l9xafNDlycA.en_US./sv=1/am=!PemfnfjrL2yI81ARQg/d=1/rs=AItRSTPblCJvoWHsMeVNOsKiKGakP1copQ/cb=gapi.loaded_0:206
Unsafe JavaScript attempt to access frame with URL http://www.kiosban.com/jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/ from frame with URL http://www.facebook.com/plugins/login.php?add_to_profile=false&api_key=384945498218921&channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D6%23cb%3Df1382a12d%26origin%3Dhttp%253A%252F%252Fwww.kiosban.com%252Ff4bed3cb%26domain%3Dwww.kiosban.com%26relation%3Dparent.parent&extended_social_context=false&locale=en_US&login_text=&max_rows=1&one_click=false&sdk=joey&show_faces=true&show_login_face=false&size=small&tense=past&width=200. Domains, protocols and ports must match.
zYYvIvm5_Za.js:89
g.categories.(anonymous function).(anonymous function) zYYvIvm5_Za.js:89
(anonymous function) BOwYwRudgQC.js:5
n _xZSy89IRtb.js:22
h.inform _xZSy89IRtb.js:25
v zYYvIvm5_Za.js:27
p
关于我的问题的任何想法??
答案 0 :(得分:1)
未捕获的ReferenceError:jQuery未定义/ jangan-nyalakan-lampu-hazard-dikala-hujan-lebat /:1115 未捕获的ReferenceError:$未定义/ jangan-nyalakan-lampu-hazard-dikala-hujan-lebat /:1716
这是因为jQuery没有正确加载,或者你试图使用jQuery依赖的方法或选择而没有定义jQuery。确保检查正在加载的内容的顺序。
答案 1 :(得分:0)
“请指定ShareThis发布商密钥 如需帮助,请联系support@sharethis.com“ 我之前也遇到过这个错误。请检查您是否定义
<script type="text/javascript"> stLight.options({ publisher: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" }); </script>
在“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”中使用您的实际发布商密钥 将其插入到我的代码后,错误就消失了。