Facebook Like Gate for ASP.NET

Facebook Like Gate is very popular feature used in Facebook Page applications to provide different content depending on the user fan status. Usually it can contain some kinde of a coupon or similar content. Facebook Like Gate ASP.NET control is an easy way to integrate the Like Gate inside ASP.NET pages. Compiled version and source code version of this ASP.NET control are available in C# and VB.NET programming languages, as part of Facebook ASP.NET (C# and VB.NET) Control library.




Configuration

Configuration of the Facebook Like Gate ASP.NET control is done in ASPX page by setting event handlers to execute one code in case of like and another in case of dislike. If dynamic setting of properties is required, they can also be set in the code behind, for example on Page_Load method. Following table shows the list of properties and event handlers.


Properties and event handlers:
facebook login button asp.net
Property Name
Type
Description
facebook login button asp.net
Liked
String
Return true if the user is fan of a page, false if not
facebook login button asp.net
OnLike
Event Handler
Execute when user likes a page
facebook login button asp.net
OnUnlike
Event Handler
Execute when user unlikes a page



Usage Examples:

Following examples show registration and insertion of Facebook Like Gate ASP.NET control in ASPX file. The first example shows the default Facebook Like Gate without any property set. The second example shows the Facebook Like Gate with the event handlers set. Examples of ASPX files show only the code required for registration and integration of ASP.NET control in a web page. To see all requirements for registered components, including JavaScript, CSS style and header setting, please look at the manual for page requirements. For following examples, all page requirements are placed in ASP.NET master page. Important parts for registration and integration of Facebook Send Button inside ASP.NET page are highlighted.


Default Facebook Like Gate:
 <%@ Page MasterPageFile="~/Master.Master" AutoEventWireup="true" Inherits="FVK_Demo.LikeGate" %>
 <%@ Register TagPrefix="fvk" TagName="likegate" Src="~/FVK/LikeGate.ascx" %%>
 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"%>
    <title%>Facebook Like Gate for ASP.NET</title%>
    <meta name="description" content="ASP.NET implementation of Facebook Like Gate in C# and VB.NET" /%>
 </asp:Content%>
 <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"%>
    <fvk:likegate ID="likegate1" runat="server" /%>
 </asp:Content%>

Facebook Like Gate with event handlers set:
 <%@ Page MasterPageFile="~/Master.Master" AutoEventWireup="true" Inherits="FVK_Demo.LikeGate" %>
 <%@ Register TagPrefix="fvk" TagName="likegate" Src="~/FVK/LikeGate.ascx" %%>
 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"%>
    <title%>Facebook Like Gate for ASP.NET</title%>
    <meta name="description" content="ASP.NET implementation of Facebook Like Gate in C# and VB.NET" /%>
 </asp:Content%>
 <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"%>
    <fvk:likegate ID="likegate1" runat="server"
      OnLike="DoLike"
      OnUnlike="DoUnlike" 
    /%>
 </asp:Content%>

 

Customer Testimonials

"I personally use it in both of my apps too and it's WONDERFUL. Saves a LOT of time. Get the source code license. It's well worth it. The best part is that the dev is constantly updating it to keep up with any facebook changes, so we never have to worry about that part of it. Get this product. If you're serious about facebook development using asp.net, then this product isn't merely a luxury, it's a must have. Get it. You'll be glad you did.Excellent product."

Terence McGhee, Bonafide Diversions Inc.

Customer Spotlight



Vote for your favorites

Facebook development platform
Contact   |  Refund Policy   |  Privacy Policy   |  EULA