New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Standard Buttons' Events

The Standard Buttons are created via external scripts from the respective network and therefore we cannot fully guarantee their correct functionality.

Facebook Button Events Are Not Fired

Sometimes the OnFacebookLike, OnFacebookUnLike and OnFacebookSend events are not fired when the external Facebook buttons are used (the buttons). This is usually due to a missing Facebook App ID. When these external buttons are used we rely on scripts from Facebook for these events and if the Facebook App ID is incorrect they are not fired or are fired unreliably. More information on the matter is available in this post from Veronika Rieglerova's blog. Once you have this ID you can pass it to the RadSocialShare's FacebookAppId property.

Another addition that sometimes helps is the following namespaces to the tag:

<html xmlns="https://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">

For Telerik UI versions prior to Q3 2014 release you must use the following XML namespace:

<html xmlns="https://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"
    xmlns:og="http://opengraphprotocol.org/schema/">

More information on the matter is available in the Changes and Backwards Compatibility help article, in the section called Telerik RadSocialShare for ASP.NET AJAX Q3 2014.

Facebook seem to track the origin of the requests, so it often blocks when testing from localhost. Little can be done for this, except for simply waiting. An option that sometimes yields a testable site during development is replacing localhost with its IP equivalent - 127.0.0.1. The other option is to immediately deploy to a staging server that is accessible from the general Internet (and therefore from Facebook) and testing there.

Events not Cancellable

When using the external buttons we do not render the HTML or scripts for them, but we leave this task to the other company's scripts. This means thatthe HTML is rendered in an iframe with its src chosen by the scripts. Therefore their events cannot be cancelled, as JavaScript does not allow accessing pages from other domains (the so called cross-domain scripting security limitation).

See Also

In this article