Facebook Invite All Friends for ASP.NET

Facebook Invite All Friends ASP.NET control is used to provide invitation of lot of friends without tedious selection one by one. Since the maximal number of invitations sent at once is 50, process of sending is separated in 2 phases: first sending to 50 friends and then showing a dialog with progress bar to allow user to send to next 50 friends. Facebook Invite All Friends ASP.NET control is custom build solution which uses Facebook Request Dialog feature loaded with 50 friends and a dialog with progress bar. The control is available in C# and VB.NET programming languages, as part of Facebook ASP.NET (C# and VB.NET) Control library.



facebook invite all friends ASP.NET code




Usage Examples:

Following examples show registration and insertion of FFacebook Invite All Friends ASP.NET control in ASPX file. The first example shows default Facebook Invite All Friends control with only Message property set. The second example shows the control 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 the requirements for registered components, including JavaScript, CSS style and header setting, please look at the manual for page requirements. For the following examples, all page requirements are placed in ASP.NET master page. Important parts for registration and integration of Facebook Invite All Friends inside ASP.NET page are highlighted.


Default Facebook Invite All Friends:
 <%@ Page MasterPageFile="~/Master.Master" AutoEventWireup="true" Inherits="FVK_Demo.InviteAllFriends" %>
 <%@ Register TagPrefix="fvk" TagName="inviteallfriends" Src="~/FVK/InviteAllFriends.ascx" %>
 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"%>
    <title%>Facebook Invite All Friends for ASP.NET</title%>
    <meta name="description" content="ASP.NET implementation of Facebook Invite All Friends in C# and VB.NET" /%>
 </asp:Content%>
 <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"%>
    <fvk:inviteallfriends ID="invite1" runat="server" Message="Join to my application" /%>
 </asp:Content%>

Facebook Invite All Friends with all properties set:
 <%@ Page MasterPageFile="~/Master.Master" AutoEventWireup="true" Inherits="FVK_Demo.InviteAllFriends" %>
 <%@ Register TagPrefix="fvk" TagName="inviteallfriends" Src="~/FVK/InviteAllFriends.ascx" %>
 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"%>
    <title%>Facebook Request Dialog for ASP.NET</title%>
    <meta name="description" content="ASP.NET implementation of Facebook Request Dialog in C# and VB.NET" /%>
 </asp:Content%>
 <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"%>
    <fvk:inviteallfriends ID="invite1" runat="server"
       Message="Join to my application"
       Title="Request dialog"
       AdditionalData="Type: 3, Item: 2"
       CommandType="link"
       CommandTitle="Invite All Friends"
       CssClass="button blue"
       CssStyle="font-size:10px"
       NextDialogTitle = "Invite more friends ..."
       NextDialogNumbers = "Invites were sent to first {0} out of {1} of your friends."
       NextDialogContinueLabel = "Continue with sending to the next 50 friends ..."
       NextDialogContinueButton = "Continue"
       NextDialogCancelButton = "Cancel"
       OnRequestSentCalled = "OnInvite"
    /%>
 </asp:Content%>



Configuration

Configuration of the Facebook Invite All Friends ASP.NET control is done in ASPX page by setting mandatory property Message and other optional properties. If a 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
Title
String
Title of request dialog.
facebook login button asp.net
Message
String
Message of request dialog.
facebook login button asp.net
AdditionalData
String
Optional data which is sent with request.
facebook login button asp.net
CommandType
String
Can be set on 'link', 'button', or 'auto_open'. This means request dialog is opened by pressing a link, button, or automatically on page load. Default value is 'button'.
facebook login button asp.net
CommandTitle
String
Text of command button or link. If 'auto_open' command type is used, this parameter is ignored. Default value is 'Send Request'.
facebook login button asp.net
Enabled
Bool
If set to false control will not work on click
facebook login button asp.net
CssClass
String
CSS class of command button/link
facebook login button asp.net
CssStyle
String
CSS style of command button/link
facebook login button asp.net
Image
String
Image of command button/link
facebook login button asp.net
Filters
String
Set filter. Example all, app_users and app_non_users, or custom defined list
facebook login button asp.net
InvitedIds
String
Get invited friends ids after request is sent
facebook login button asp.net
NextDialogTitle
String
Set title of invite next friends dialog
facebook login button asp.net
NextDialogNumbers
String
Set the numbers of invite next friends dialog. Default: Invites were sent to first {0} out of {1} of your friends.
facebook login button asp.net
NextDialogContinueLabel
String
Set continue label of next friends dialog. Default: Continue with sending to next 50 friends ...
facebook login button asp.net
NextDialogContinueButton
String
Set the text of continue button inside next friends dialog. Default: Continue
facebook login button asp.net
NextDialogCancelButton
String
Set text of cancel button inside next friends dialog. Default: Cancel



Event Handlers:
facebook login button asp.net
Event Name
Description
facebook login button asp.net
OnRequestSentCalled
Call after request is sent or canceled
 

Customer Testimonials

"We are using FVK to create Facebook games and applications on the .NET platform, taking advantage of the encapsulated behaviors (like Stream Publish, Invitation, Alert Publishing, etc.) included in the library. FVK has a real good cost-benefits relation, in comparision to develop our own Facebook .Net componentes and UI Controls. It's the best alternative for Facebook & C#."

Ignacio J. Raffa, CTO, Solotuweb

Customer Spotlight



Vote for your favorites

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