Facebook Like button

51 views
Skip to first unread message

bryanb

unread,
Feb 15, 2012, 8:19:59 PM2/15/12
to Google Web Toolkit
I've used the code from http://developers.facebook.com/docs/reference/plugins/like/
to generate a Like button. I've used both the XFBML and HTML5 code.

It works in FF,Chrome and Safari with this code snippet (this is the
HTML5 version):

HTML fb = new HTML();
fb.setHTML("<div class=\"fb-like\" data-href=\"http://www.blah.com\"
data-send=\"true\" data-width=\"360\" data-show-faces=\"false\" data-
font=\"arial\"></div>");

then add this to some panel.

In my HTML file I've added

<div id="fb-root"></div>

and the Facebook generated Javascript.

In IE 9 and the latest Opera it doesn't display. I note there's an
earlier thread from last year on this, but I can't see anywhere that
anyone has actually got it to work.

Brandon Donnelson

unread,
Feb 19, 2012, 11:37:22 PM2/19/12
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages