AddThis offers free social media and sharing tools via its JavaScript API. However, some of the advanced features use a format that conflicts with ASP.NET.
Any attribute in the format
source:object:attribute = value such as
g:plusone:size=small will result in a "String X contains too many device filters" error.
For these features, a .Net function is required. For example, working with the Google Plusone button:
< script runat="server">
Protected Sub Page_Load()
End Sub
Protected Function GetPlusoneCode() As String
Return String.Format("{0}=""{1}""", "g:plusone:size", "small")
End Function
script >
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_google_plusone" <%= GetPlusoneCode() %>>a>
div>
script tag malformated for security