Facebook Subscribe To Event for ASP.NET
Facebook Subscribe to Event ASP.NET control is used to inform an application by executing event handler about an event made by a user. Event can be when somebody likes a page by pressing on Like Button or when somebody puts a comment in Facebook Comments Box. A list of all possible events is given under configuration section. 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 of the Facebook Subscribe to Event ASP.NET control is done in ASPX page by setting the event handler to execute a specific some code when a particular event occurs. If dynamic setting of properties is required, they can be also set in the code behind, for example on Page_Load method. Following tables shows the list of properties and the list of all possible events.
Properies and Event handlers:
Default Facebook Like Gate:
<%@ Page MasterPageFile="~/Master.Master" AutoEventWireup="true" Inherits="FVK_Demo.SubscribeToEvent" %> <%@ Register TagPrefix="fvk" TagName="sevent" Src="~/FVK/SubscribeToEvent.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 Subscribe to Event in C# and VB.NET" /%> </asp:Content%> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"%> <fvk:sevent ID="sevent1" runat="server" EventName="Like" OnEventTrigger="OnLike" /%> </asp:Content%>