Share your posts on Facebook and Retweet them on Twitter with TWITBOOKSHARE – BlogEngine.NET Extension

by Sumant 11. December 2009 09:34

I’ve just completed a small extension for BlogEngine.NET which adds Facebook Sharing and Twitter – Retweeting options to your blog posts.

Here is a snapshot of how it would look -

twitbookshare

Installing this extension is as easy as any other extension in BlogEngine.NET. If this is your first time, here are the steps -

  1. Download the zip containing extension file from this page and extract it your local system.
  2. Upload ‘TwitBookShare.cs’ file to the ‘App_Code\Extensions\’ directory on your blog installation.
  3. Tweak your theme and add following style -

CSS-Code: Stylesheet Code
.fb_share_no_count{display:block!important;visibility:hidden;     }

This style keeps Facebook Share button on the same level as of the Tweet button when a post has not been shared even once.

I could also create this as a user control if someone needs it for embedding into a Theme. I will be adding a few more options to this extension to control the styles. Will update here once its done.

If you happen to use this, please do leave your feedback. :)

Download Extension here - TwitBookShare.zip (1.66 kb)

Share   

Tags: ,

BlogEngine.NET | BlogEngine Extensions

Comments (6) -

5/21/2011 6:57:36 AM #

JM

how to redeploy the published one. what files should i upload n order the twitbook extension to work..

thanks..

JM Philippines

9/25/2011 6:48:28 AM #

360 Tune Up

First, I want to thank you for this wonderful extention. I have added it to my site and is works and looks great.

I am having a slight issue... I see on your page it shows the retweet and facebook share count. I am having a slight issue where my facebook share count is not displaying until AFTER you click on it to share (my retweet count is working correctly).

Any idea how to fix this issue?

The page I tested it on is here (I have at least one Facebook and Retweet count on each):

360tuneup.com/.../...Anniversary-is-Coming-Up.aspx

Any help would be awesome!

360 Tune Up United States

9/30/2011 3:22:42 PM #

sumant

@JM: sorry for the delayed response, I didn't get your question. If you are still having any problems, could you please explain the issue? Thanks.

@360TuneUp: Hey.. am glad you liked it and are using it. It's the same problem on my pages too (where there are no shares), I haven't researched yet to fix that as I have been too occupied to keep this blog updated. Please update me if you get a solution. I will try to find one as soon as I get some time. Thanks.

sumant India

10/23/2011 9:09:58 PM #

360 Tune Up

My issue is more interesting, the count does not show if there is a count or not... The only time it shows is when you click on it, but once the page is reloaded it is hidden again. I have been messing with it and I can't find a solution, will try some more.

360 Tune Up United States

1/24/2012 5:23:36 AM #

John

Can this be used in BE.net v2.5? Once I upload the .cs file to the Extensions folder I am inable to run my site using Visual Studio10? Any idea why this is the case?

John South Africa

1/25/2012 1:40:23 AM #

sumant

Yes John, it can be used with v 2.5. I'm running BlogEngine.NET 2.5.0.6 here and the extension pretty much works.

Could you please elaborate on the issue you are having with VS 2010? Did you upgrade from a previous version or is this a new installation?

sumant India

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

© 2008 Sumant Dubey

About this blog

Absolutely technical! The posts are about concepts, tricks, articles and links on technical subjects / problems which are not very obvious to understand / resolve. Purpose is to have this as the first-aid in the time of need.

RecentComments

Disclaimer

The opinions expressed on this website are my own personal opinions and do not represent my employer's view in anyway.