SnTT: How to fix Facebook Like button

Facebook logo Facebook made some „small changes“ to the Like button lately, which broke most blogs running on IBM Lotus Domino servers. The changes were really small, they just added a new parameters to the URL – fb_ref and fb_source. However, Domino accept just a few specific parameters to be added at the end of the URL. It can run without them, but it cannot run with some others instead.

So, if you use the following URL schema

http://server/database/title.htm

and have a FB like button on this page, you can share it without any problem. The problem appear when one try to follow the shared link. There will be new parameters at the end

http://server/database/title.htm?fb_ref=top_left&fb_source=profile_oneline

and Domino server will fail with the „HTTP Web Server: Unknown Command Exception“ error.

The solution is pretty simple. Just add the ?Open command to the URL you are sharing. Which means, that the tag in your HTML code will look like

< div class="fb-like" data-href="http://server/database/title.htm?Open“ data-layout=“standard“ data-action=“like“ data-show-faces=“true“ data-share=“true“>

Update your code and enjoy!

Leave a Reply