开发者

facebook like button (plugin) gives error when liking facebook.com page

开发者 https://www.devze.com 2023-02-15 18:07 出处:网络
I\'m trying to add the facebook like button plugin to a site, and the target URL is a facebook.com page.

I'm trying to add the facebook like button plugin to a site, and the target URL is a facebook.com page.

When I click the button, it changes to show that I like the page, then immediately changes back 开发者_如何学运维with a red "Error" next to it. However, the button has actually worked - if I reload the page with the button, it lists me among the likers, and if I go to the facebook page, it registers that I've liked it.

Here's my test page: http://www.graham-price.co.uk/facebook/ NB. The like button is the xfbml version, not iframe.

Also just noticed that this works fine with box_count and button_count versions, just not the standard version.

YellowTail Australia is the button that doesn't work. YellowTail Canada (for some reason) works fine. I'm an admin on both of these pages and the settings appear identical to me.

Any ideas?


Submitted a bug to Facebook and it turns out that the reason this doesn't work is that the Facebook page the like button points to has an age restriction on it. Since you can't view that page in Facebook unless you're over 18, you shouldn't be able to like it from outside Facebook.

Still, the error is unexpected behaviour and only appears for standard like buttons (not box count or button count), and Facebook has marked it a duplicate of an existing bug.

0

精彩评论

暂无评论...
验证码 换一张
取 消