开发者

ASP.net : Simple way to add glyphs to website for sharing on social networking

开发者 https://www.devze.com 2023-03-10 02:08 出处:网络
I want to add the glyphs for popular social netowrking sites like FB, twitter, digg, buzz to my website. I have looked into AddThis and 开发者_运维问答ShareThis sharing widgets. However, I want to do

I want to add the glyphs for popular social netowrking sites like FB, twitter, digg, buzz to my website. I have looked into AddThis and 开发者_运维问答ShareThis sharing widgets. However, I want to do the same thing on my own without these 3rd party tools. I have master page and to it I want to add these glyphs like Like from FB. I am confused..in order for the like to work for each page how do i keep track of the like counter... How to do it for twitter and all popular sites. Any help will be appreciated.


Eventually, I used AddThis add on and it seems easy to customize than ShareThis widget... AddThis forum is also very helpful...Now all the integeration headache is for AddThis to resolve and I am left at peace.


Each target site is going to have its own API and its own methods for adding things. As an example, the Like button for Facebook can be quickly added to your site by generating the XFBML or iFrame code for the button here.

If you go the XFBML route, which gives you more flexibility (I inferred from your comment about not relying on 3rd party libraries that this is your intent), then you'll need to include the Facebook JavaScript SDK.

The "count" of how many people "like" your site (or your application, if you register it as a Facebook application for even more flexibility) is tracked by Facebook. You don't need to track it. But you can if you want by adding custom code to the right JavaScript event (mentioned in the FAQ on my first link).

0

精彩评论

暂无评论...
验证码 换一张
取 消