Thursday, May 5, 2011

Facebook like/send buttons: using XFBML from GWT

Has anyone had any success getting Facebook Like/Send buttons to work using XFBML? The issues I'm running into are:

1. I want to show the buttons dynamically, based on the user "navigating" to a particular state of my GWT app. I'm fine with including the FB script in my host page, as long as I can display the buttons "on demand", so to speak.

2. The page being "liked" is itself a GWT page state (i.e. hash-style URL: http://example.com/#!results://all/1-10). Although the URLs are durable and bookmarkable, they do need to be set in the <fb:like> tag somewhat dynamically. 

I don't yet have the <fb:like> tag working in UIBinder, but I've read that updating the "href" property dynamically won't work. So I'm going to try inserting the entire <fb:like> tag dynamically. This feels an awful lot like emitting a page JSP-style, so I'm wondering if there's a better solution out there.

Thanks




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate