As we promised ever, we are trying to build an enhanced and ultimate publishing tool on the DotNetNuke(DNN) platform with a focus on simplicity, ease of extendibility, web standards and usability. We hope that you can build what you would like to with more flexibility and extendibility and the WordPress-level blogging engine is our target until now. Today I would like share you how to add Facebook like button into your dnn website with Ultimate Blog Module – SunBlogNuke.
It's a very easy way for people to share articles they like and also helps drive more traffic to your sites. Since it seems most people have Facebook accounts now-a-days, there should be plenty of users on blogs liking things. Best part is, it's really easy to add to your blog too. Let us go through some steps below to add Facebook like button into your dnn blog:
<iframe src="http://www.facebook.com/plugins/like.php?href=[PERMALINK]&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border: none;overflow: hidden; width: 530px; height: 60px"> </iframe>
That is all. Please visit here to see how it action - The Latest in Blogging Innovation.You can change the parameters to customize the link button however you want. I think this is an awesome little trick and will drive more traffic than any of those "share" buttons on most blogs.
The tutorial is converted with the forum post - Adding a "Facebook Like" button. Thanks for Matt’s contributions again.
Updated: integrating with Facebook OpenGraph meta tags helps to populate the Facebook link/page/item fields in the Facebook Profile. Just follow up the steps below:
<%@ Control Language="vb" AutoEventWireup="false" EnableViewState="false" Inherits="SunBlogNuke.UI.PostViewBase" %> <%@ Import Namespace="SunBlogNuke.Common" %>
<script language="vbscript" runat="server"> Sub Page_PreRender(ByVal sender As Object, ByVal e As EventArgs) DirectCast(Page, PageBase).HtmlAttributes.Add("xmlns:og", "http://opengraphprotocol.org/schema/") DirectCast(Page, PageBase).HtmlAttributes.Add("xmlns:fb", "http://www.facebook.com/2008/fbml") Page.Header.Controls.Add(New LiteralControl("<meta property=""og:title"" content=""" & Entry.Title & """/>")) Page.Header.Controls.Add(New LiteralControl("<meta property=""og:type"" content=""Blog""/>")) Page.Header.Controls.Add(New LiteralControl("<meta property=""og:image"" content=""" & ModuleContext.PortalSettings.HomeDirectory & ModuleContext.PortalSettings.LogoFile & """/>")) Page.Header.Controls.Add(New LiteralControl("<meta property=""og:url"" content=""" & Entry.Link & """/>")) Page.Header.Controls.Add(New LiteralControl("<meta property=""og:site_name"" content=""" & ModuleContext.PortalSettings.PortalName & """/>")) Page.Header.Controls.Add(New LiteralControl("<meta property=""og:admins"" content=""YOUR FACEBOOK ID""/>")) Page.Header.Controls.Add(New LiteralControl("<meta property=""og:description"" content=""" & HttpUtility.HtmlEncode(HtmlTextUtils.StripHtml(Entry.Description)) & """/>")) End Sub </script>
Senior developer for dnn solution & founder of ultimate dnn blog module - SunBlogNuke, which is the best publishing tool for DotNetNuke (DNN) websites, with a focus on simplicity, ease of extensibility, web standards and usability. It includes a great suite of modules for blogging on your DNN site.
Re: DNN7 Blog Integrated with ModuleSearchBase
B- please FIX the bugs...driving me nuts!!!! Error: Edit blog entry is currently unavailable. DotNet...
-- kkuhns
Re: Fighting DNN Bugs Ⅱ: Why Can't Remove Google Analytics
Thanks a lot for your reference and it should be helpful for community guys. :)
-- Baldwin
please ensure you log any bugs to http://support.dnnsoftware.com - i searched and couldnt see this one...
-- Cathal
Re: Build DNN Rotator with GalleryPlus
How do you place the gallery within a blog entry. I saw in the below demo that a token was used ([SL...
-- Mary
Re: Enhance DNN Article Footers with Author Profiles
Please make sure that the bio field of this current host user is visual to public(you should find it...
I'm trying to get the bio to show up for a host user but it comes up blank. Can you replicate this issue...
-- Lucas
Re: [Kudos]DotNetNuke Blog Module In Depth Review
Yes, the latest package is absolutely compatible well with DNN7 and the performance was enhanced a lot...
Is it compatible with DNN 7
-- swayam
Re: SunBlogNuke 6.0 Technology Preview
No, actually the v6.0 had been available to downlaod for upgrade - http://www.sunblognuke.com/blog/entryid...
this article says that version 6.0 is not for production use. the article is from may 2013... is sun...
-- pekai
The opinions expressed here in are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2009 - 2024