Facebook Send Button for ASP.NET

Facebook Send Button is used to share info about interesting content with just a couple of (presumably) interested Facebook friends. For example, visitor of this website probably has a couple of friends which are also web developers, and they have much more interest in the topic like this then all other friends. The best way to share this info is for them to get it in their inboxes. That is much more effective than sharing on user wall. Facebook Send Button also has an option to send info to Facebook groups for which the user is fan of, or to any email address, so user can send it to people which are not in his list of Facebook friends. The control is available in C# and VB.NET programming languages, as part of Facebook (C# and VB.NET) ASP.NET Control library.




facebook send button




Usage Examples:

Following examples show registration and insertion of Facebook Send Button ASP.NET control in ASPX file. The first example shows default Send Button without any property set. The second example shows Send Button with all properties 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 Send Button:
 <%@ Page MasterPageFile="~/Master.Master" AutoEventWireup="true" Inherits="FVK_Demo.SendButton" %>
 <%@ Register TagPrefix="fvk" TagName="sendbutton" Src="~/FVK/SendButton.ascx" %%>
 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"%>
    <title%>Facebook Send Button for ASP.NET</title%>
    <meta name="description" content="ASP.NET implementation of Facebook Send Button in C# and VB.NET" /%>
 </asp:Content%>
 <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"%>
    <fvk:sendbutton ID="send1" runat="server" /%>
 </asp:Content%>

Facebook Send Button with all properties set:
 <%@ Page MasterPageFile="~/Master.Master" AutoEventWireup="true" Inherits="FVK_Demo.SendButton" %>
 <%@ Register TagPrefix="fvk" TagName="sendbutton" Src="~/FVK/SendButton.ascx" %%>
 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"%>
    <title%>Facebook Send Button for ASP.NET</title%>
    <meta name="description" content="ASP.NET implementation of Facebook Send Button in C# and VB.NET" /%>
 </asp:Content%>
 <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"%>
    <fvk:sendbutton ID="send1" runat="server"
       Url="http://vatlab.com"
       Font="tahoma"
       SetColorScheme="dark"
    /%>
 </asp:Content%>




Configuration

Configuration of the Facebook Send Button ASP.NET control is done in ASPX page by setting optional properties. Default Send Button, which is typically used, does not have any property set, which means that shared content will point to page from which is sent. However, customizations are always possible with properties setting. 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 all properties, with their types and descriptions.


Properties:
facebook login button asp.net
Property Name
Type
Description
facebook login button asp.net
Url
String
URL of the send button. If it's not set, current page URL is used.
facebook login button asp.net
Font
String
Font inside the send button. Available values are 'arial', 'lucida grande', 'segoe ui', 'tahoma', 'trebuchet ms', and 'verdana'.
facebook login button asp.net
SetColorScheme
String
Color scheme. Available values are 'light' and 'dark'. Default value is 'light'.
facebook login button asp.net
Reference
String
The reference string for tracking referrals.
 

Customer Testimonials

"Save time and get your product done faster with this SDK. If you are looking for a solid foundation to build a Facebook Server application, I Highly recommend this SDK and the GiftApp. With extensive code examples and broad Coverage of all things that a typical Facebook app developer needs, you’ll hit the ground running."

Nader Rahimizad, CTO GamesBox Co., Ltd.

Customer Spotlight



Vote for your favorites

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