Thursday, 20 September 2012

twitter share code

<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.domain.com/gfgf+11/" runat="server"  data-count="none" data-via="AnGe7s" data-lang="fr">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>






Properties which can be used by all types of the Tweet Button

The properties in this table can be used by the Javascript, IFRAME and build your own Tweet Buttons. Each property is a query string parameter for the https://twitter.com/share URL.

Query String Parameter   Description
url                                  URL of the page to share
via                                 Screen name of the user to attribute the Tweet to
text                                 Default Tweet text
related                         Related accounts
count                        Count box position
lang                               The language for the Tweet Button
counturl                       URL to which your shared URL resolves
hashtags                      Comma separated hashtags appended to tweet text
size                               The size of the rendered button
dnt                                See this section for information
Properties which can be used by the Javascript Tweet Button

The properties in this table can only be used by the Javascript Tweet Button. When used they provide additional places the Tweet Button can look for information on what to pre fill the Tweet with. The Tweet Button looks for property values in the priority order given in the table. For example when looking for the URL to use, the Tweet Button will:


No comments:

Post a Comment