OGData extension for BlogEngine.NET

Since Facebook launched their share link feature anyone including you can share your site or pages to their friends. You can tailor what is displayed on the Facebook wall in terms of title, description image and URL.

Facebook is smart enough to use the html meta tags on your page for title and description and it may list some or all of the <img> tags to the user to choose from. This is great as a starting point and may be enough in many cases, however in some it is not.

example_ogdata

Say that you put a Like button on a page. What happens when a user Likes it is that Facebook uses the title and description as before but it may try to pick an image from the page, probably closest in proximity to the Like button. This may not be what you want as you might want a specific image to be displayed on Likes.

Open Graph protocol

The Open Graph protocol enables you to integrate your web pages into the Facebook social graph. You can turn your pages into graph objects by adding additional meta information.

Additional images

One image may not be enough e.g. when users share your page with the above mentioned Share link feature. To still enable users to pick one of the images on your page you can add additional og:image <meta> tags to the header.

BlogEngine.NET

If you have BlogEngine.NET, I created an extension to insert automatically og data.

image

Here you will find two settings:

Then click the Add button and then click the Save button.

You can find the source code on GitHub.

Comments (23) -

Akhil Jose Chandy
11/9/2016 4:57:37 PM #

Greetings! I've been reading your site for a long time now and finally got the bravery to go ahead and give you a shout out from  Dallas Tx! Just wanted to tell you keep up the excellent job!

brown vs lowes
6/17/2017 11:15:05 PM #

Nice post, thanks a lot for the great information.

porn movie
6/18/2017 12:20:53 AM #

Great Post, I loved how you described your article so vividly

scam
8/16/2017 2:20:45 AM #

I truly appreciate this post. I’ve been looking everywhere for this! Thank goodness I found it on Bing. You have made my day! Thanks again

saumon fumé enceinte
8/22/2017 1:57:38 PM #

Just desire to say your article is as astounding. The clearness in your post is just cool and i could assume you are an expert on this subject. Fine with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please continue the enjoyable work.

Eastwood@ymail.com
9/12/2017 1:41:35 PM #

Your site content is unique,Thanks

Hipolito Hull
9/26/2017 1:57:48 AM #

Wonderful, what a blog it is! This webpage provides useful data to us, keep it up.

Michel Monkowski
9/28/2017 2:24:13 AM #

Wonderful, what a blog it is! This webpage provides useful data to us, keep it up.

Terrilyn Chalupa
10/19/2017 5:35:50 PM #

Magnificent beat ! I wish to apprentice while you amend your web site, how could i subscribe for a blog web site? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear idea

Enrico
10/22/2017 12:05:07 PM #

You can subscribe the blog to add your email on left top of the sidebar.

Andrew Pelt
10/27/2017 1:54:02 PM #

Ottimo questo articolo, ci sono arrivato per caso ma voglio fare i compliimenti all'autore, un saluto!

Umhlanga Allzajos
11/13/2017 7:38:14 PM #

Very interesting info!Perfect just what I was looking for!

Arusha Alljobspo
1/23/2018 1:16:49 PM #

Some really   great   content  on this  site, thanks  for contribution.

Cleaning Alljobspo
1/29/2018 8:42:03 AM #

I am really impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it’s rare to see a great blog like this one today..

volta Alljobspo
2/15/2018 2:25:14 AM #

I do believe all of the ideas you have presented for your post. They're very convincing and will definitely work. Still, the posts are very quick for starters. Could you please extend them a little from subsequent time? Thank you for the post.

work Kenya
2/17/2018 12:35:19 AM #

I like the valuable info you provide in your articles. I’ll bookmark your weblog and check again here frequently. I am quite certain I’ll learn many new stuff right here! Best of luck for the next!

Welkom Allzajos
3/6/2018 12:38:36 PM #

A person essentially assist to make seriously articles I would state. This is the first time I frequented your web page and so far? I amazed with the research you made to make this particular put up amazing. Excellent process!

work Kenya
3/28/2018 9:20:12 PM #

Some really   excellent   content  on this  web site ,  appreciate it for contribution.

Michel Norgaard
3/30/2018 7:56:52 PM #

I actually wanted to write a brief comment in order to express gratitude to you for those splendid strategies you are sharing on this site. My prolonged internet look up has at the end of the day been paid with professional knowledge to talk about with my company. I 'd suppose that we readers actually are unequivocally endowed to be in a wonderful place with so many lovely people with great solutions. I feel somewhat privileged to have seen your entire web page and look forward to really more brilliant minutes reading here. Thanks a lot again for all the details.

alljobspo work
4/25/2018 9:24:03 AM #

I think  you have mentioned  some very interesting points ,  appreciate it for the post.

Kenya Employment
4/28/2018 12:26:05 PM #

I am extremely impressed with your writing skills as well as with the layout on your weblog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it is rare to see a nice blog like this one today..

Thika jobs
4/30/2018 8:21:06 PM #

I like this  web blog  very much, Its a  real  nice  berth  to read and  incur  information. "Being powerful is like being a lady. If you have to tell people you are, you aren't." by Margaret Hilda Thatcher.

Nyanza Jobs
5/11/2018 3:56:06 PM #

Great blog here! Also your website loads up fast! What web host are you using? Can I get your affiliate link to your host? I wish my website loaded up as fast as yours lol

Add comment

Advertsing

125X125_06


Subscribe to our mailing list

* indicates required


TagCloud

MonthList

CommentList