0

So what's strange is that the like buttons on my site will only work IF the like button has already been liked in the past. If there are no current likes, such as on this page:

http://www.narutomeetsbleach.com/naruto-shippuden-219.html

Then you can click like all you want, but you won't actually like anything. Does anyone know what's wrong? I got my like HTML directly from facebook and it's the exact same as the like buttons that are working.

Thanks so much!

srchulo
  • 5,143
  • 4
  • 43
  • 72
  • You'll have to complain to Facebook. The button and all it's code comes from them and it's within an iframe with source from their server... you'll have no control over how that works. – Sparky Jul 07 '11 at 18:30
  • okay. just wasn't sure if I was doing something wrong. – srchulo Jul 07 '11 at 18:37
  • Just double-check your tags making sure you got your App ID and such entered correctly... otherwise, you're at their mercy. – Sparky Jul 07 '11 at 18:43
  • actually, I don't think that I ever created an app for this but it worked fine. I have to create an app just to have the like button? – srchulo Jul 07 '11 at 18:53
  • Contrary to what you may think, you'll need to create your unique App Id for a simple "Like" button (XFBML version). See my answer below. – Sparky Jul 07 '11 at 19:25

3 Answers3

0

Found it out! I had to remove the og:type meta tag. Found someone else on google who had a similar problem, that's what he did and now it seems to be working fine for me after I re-linted the url. Facebook's giving me a "warning" because I have og:type missing, but now it's working, so I guess that's all that matters. Thanks for all the help!

reference: Facebook "Like" produces "There was an internal error when updating the Page."

Community
  • 1
  • 1
srchulo
  • 5,143
  • 4
  • 43
  • 72
0

You can use the Facebook LINT tool. It actually checks you meta tags and will point you in some direction what your problem is. (Check link below.. I have added a ?v=1 to the html page to avoid facebook server error response)

http://developers.facebook.com/tools/lint/?url=http%3A%2F%2Fwww.narutomeetsbleach.com%2Fnaruto-shippuden-219.html%3Fv%3D1

Type in your url and check your page.

Try changing your code to the following (is there a reason why you are using the appId/fbAsyncInit methods?):

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.narutomeetsbleach.com/naruto-shippuden-219.html?v=2" send="false" layout="button_count" width="450" show_faces="false" font="tahoma"></fb:like>

AND / OR

Use this link to generate your LIKE BUTTON Code

http://developers.facebook.com/docs/reference/plugins/like/

Generated Like Button Code (Iframe) :

<iframe src="http://www.facebook.com/plugins/like.php?app_id=137084976372144&amp;href=http%3A%2F%2Fwww.narutomeetsbleach.com%2Fnaruto-shippuden-219.html%3Fv%3D3&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
Marc Uberstein
  • 12,501
  • 3
  • 44
  • 72
  • hmmm...it says that there was an internal error, but it doesn't tell me what :/ – srchulo Jul 07 '11 at 19:06
  • Check my updated answer, please let me know once updated, so I can check the Lint response. – Marc Uberstein Jul 07 '11 at 19:13
  • I changed my html tag. Is that all you wanted me to do? – srchulo Jul 07 '11 at 19:23
  • what's strange is http://www.narutomeetsbleach.com/naruto-shippuden-220.html also won't work, yet the lint thing says that there are no errors with that. – srchulo Jul 07 '11 at 19:29
  • Very strange indeed. I have updated my answer again. The html code is the code I used not so long ago on my own project. It's currently working..only difference is that I had SEND set to false. Let me know if it works. – Marc Uberstein Jul 07 '11 at 19:31
  • okay, I made that change. Even with the v=2 at the end, then I could like older pages before when I didn't have the problem, I could like those individually even though they didn't have any likes anymore, but the newer ones (219 and 220) still have the same issue :/ – srchulo Jul 07 '11 at 19:43
  • should I also set send equal to false? – srchulo Jul 07 '11 at 19:48
  • does my app id for my comments box and like button need to be different? do I need two separate "apps"? – srchulo Jul 07 '11 at 19:53
  • I was looking back and I can like pages that have no likes as long as they have been up on my site for a while. It's almost as if only recent pages aren't working. Maybe facebook has changed something and cached these pages wrong? Not sure. – srchulo Jul 07 '11 at 20:21
  • Yeah, one never knows when facebook makes changes. I had a FB Application problem the other day by using a normal HTML page, instead of a PHP or a .Net page... it maybe that? Unsure. – Marc Uberstein Jul 07 '11 at 20:48
  • 1
    Found it out! I had to remove the og:type meta tag. Found someone else on google who had a similar problem, that's what he did and now it seems to be working fine for me after I re-linted the url. Facebook's giving me a "warning" because I have og:type missing, but now it's working, so I guess that's all that matters. Thanks for all the help! – srchulo Jul 07 '11 at 20:50
  • Great stuff! Glad you managed, I will definitely remember this for future reference. :) – Marc Uberstein Jul 07 '11 at 20:52
  • Yeah, I'm glad I figured it out, but the pages only seem to work now if I relint them manually first! It's the weirdest thing. – srchulo Jul 07 '11 at 20:57
  • Actually, the only way it'll let me like anything is if I lint the page first. Even if I add a new page, it's the exact same problem until I lint it! Any ideas with that? – srchulo Jul 07 '11 at 21:06
  • @Adam: See my answer... you definitely need an App Id; even for just a Like button. – Sparky Jul 08 '11 at 04:07
  • Lint'ing a page before the Like button works is very strange, maybe Facebook is updating again? One will never know. Sparky672, I have never added an appID to add a Like button to my pages, what I know is that a meta-admins is now necessary so that the Like count can show properly. – Marc Uberstein Jul 08 '11 at 06:20
  • 1
    @Marc: What you say makes total sense. However, for the XFBML version (at least for the Like Box), an App Id was required before mine would properly load and function. See my answer which links to the FB developer docs... XFBML uses the JavaScript SDK which requires an App Id. – Sparky Jul 08 '11 at 17:18
-1

The Facebook button and all it's code comes from them and it's within an iframe with source from their server... you'll have little control over how that works. As long as you got your App ID and such entered correctly... otherwise, you're at their mercy.

Yes, even though it's just a "Like" button, you still need an App ID (appid). More detailed info below...

See the accepted answer to this: "Do I need an appid for the XFBML version of the Facebook Like button?"

And quoting this page, http://developers.facebook.com/docs/guides/web/:

"The JavaScript SDK requires that you register your website with Facebook to get an App ID (or appId). The appId is a unique identifier for your site that ensures that we have the right level of security in place between the user and your website. The following example shows how to load the JavaScript SDK once you have your appId:"

Community
  • 1
  • 1
Sparky
  • 98,165
  • 25
  • 199
  • 285