Question

I am trying to implement the Facebook Like Button but its not working. In short I can press the like button and it will say that I liked this. But nothing comes up on my profile and when I post a comment, nothing happens. It is also creating a javascript error: "Error unterminated string literal".

Here's the page I have it implemented on. Everything seems to work, except nothing comes up in the user's profile. It throws this JavaScript error:

Error unterminated string literal: static.ak.fbcdn.net/rsrc.php/zP/p/r/rfgCJM79Mlq.js

And I have the social meta tags inserted too:

enter code here 
<meta property="fb:app_id" content="162971323718605"/> 
<meta property="fb:admins" content="40509315"/>
<meta property="og:title" content="KeyStar PR"/> 
<meta property="og:type" content="music"/> 
<meta property="og:url" content="http://epk.devinshosting.com"/>
<meta property="og:site_name" content="KeyStar PR"/>
<meta property="og:image" content="http://epk.devinshosting.com/apps/PVElectronicPressKit/images/default_album.jpg"/>

Does anyone have any idea what I am doing wrong?

Was it helpful?

Solution

The meta properties aren't the fault (and they're more usefull for the share API rather than the like button).

Looks like it's working to me tough, most likely you have/had a broken string (like 'this isn't right' instead of 'this isn\'t right').

I noticed you use the iFrame version, why not switch to the FBML version? Might make life easier for you... What browser issues the error? I tried with Mozzila and FireBug didn't spit any error, even more it posted on my wall after I clicked "Like".

OTHER TIPS

Problem was not related to any actual code but the browser. Problem solved.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top