Hey,
Just a quick question. My webpage is all working fine in IE9, new Firefox, Safari, Opera, and Chrome, but in IE7 it's flagging errors to do with the Facebook share buttons (javascript). When you click them nothing shows up.
I was wondering if you could tell me what I may have done wrong. Here's the page that's appearing within a Facebook iframe:
www.rjthompsonmusic.com/facebook/fb_store_music.html
The errors are:
- Line 1013 Character 13 Expected identifier string or number
- Line 336 Character 1 object expected
- Line 416 Character 1 object expected
- Line 513 Character 1 object expected
It looks like they all have something to do with the Facebook code.
Any help would be great.
Many thanks,
Chris
ps.
Here is the code between 995 and 1020 (I've blanked out my app code):
<!--Facebook scripts-->
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js">
</script>
<script>
FB.init({
appId:'my app code', cookie:true,
status:true, xfbml:true
});
function shareProduct(caption_var, description_var, picture_var) {
FB.ui({ method: 'feed',
link: 'http://www.facebook.com/rjthompsonmusic?sk=app_my app code',
name: 'RJ Thompson Official Facebook Store',
caption: caption_var,
description: description_var,
picture: picture_var,
});
}
</script>
<!--end Facebook scripts-->
</body>
</html>
And here is the code for line 336 (I'm assuming the other errors are just duplicated of this):
<a href="#" onclick="javascript:shareProduct('A Better Life (Extended Version) - Digital Download', 'RJ Thompsons "A Better Life (Extended Version)" available for Digital Download from his Facebook Store. Includes the single, two remixes and the music video. Only £1.99!', 'http://www.rjthompsonmusic.com/facebook/a_better_life_270.jpg')">
Facebook</a>