-1

我这里有点麻烦...

我刚刚在我的网站上设置了一个 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

对我的问题有任何想法吗?

4

2 回答 2

1

未捕获的 ReferenceError: jQuery 未定义 /jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/:1115 未捕获的 ReferenceError: $ 未定义 /jangan-nyalakan-lampu-hazard-dikala-hujan-lebat/:1716

这些是因为 jQuery 没有正确加载,或者您试图使用 jQuery 相关的方法或选择而没有定义 jQuery。确保检查加载的顺序。

于 2012-06-07T23:23:46.877 回答
0

“请指定 ShareThis Publisher Key 如需帮助,请联系 support@sharethis.com” 我之前也遇到过这个错误。请检查您是否定义

<script type="text/javascript">        stLight.options({ publisher: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" }); </script>

在“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”中使用您的实际发布者密钥在我将其插入我的代码后,错误消失了。

于 2016-04-28T01:34:29.410 回答