Facebook Request Dialog for ASP.NET

Facebook Request Dialog is new Facebook component used for inviting friends to start using Facebook application or Facebook Connect website, and for requesting particular action from friends who already use the application. Facebook Request Dialog ASP.NET control allows easy integration of Facebook Request Dialog in ASP.NET pages and dynamic configuration from the code behind and data sources. The control is wrapper around Facebook JavaScript methods, and it also has verification if all parameters are correctly set. In case of typing error, exception is thrown, and the error is immediately seen by developer. The control can be used in 3 ways, i.e. in 3 different forms: as a link or a button which have to be pressed to open the request dialog, or to be automatically opened on page load. The control is available in C# and VB.NET programming languages, as part of Facebook ASP.NET (C# and VB.NET) Control library.




facebook request dialog asp.net


Usage Examples:

Following examples show registration and insertion of Facebook Request Dialog ASP.NET control in ASPX file. The first example shows default Request Dialog with only Message property set. The second example shows Request Dialog 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 Request Dialog inside ASP.NET page are highlighted.


Default Facebook Request Dialog:
 <%@ Page MasterPageFile="~/Master.Master" AutoEventWireup="true" Inherits="FVK_Demo.RequestDialog" %>
 <%@ Register TagPrefix="fvk" TagName="requestdialog" Src="~/FVK/RequestDialog.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:requestdialog ID="request1" runat="server" Message="Join to my application" /%>
 </asp:Content%>

Facebook Request Dialog with all properties set:
 <%@ Page MasterPageFile="~/Master.Master" AutoEventWireup="true" Inherits="FVK_Demo.RequestDialog" %>
 <%@ Register TagPrefix="fvk" TagName="requestdialog" Src="~/FVK/RequestDialog.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:requestdialog ID="request1" runat="server"
       Message="Join to my application"
       Title="Request dialog"
       FriedId="23876283618381"
       AdditionalData="Type: 3, Item: 2"
       CommandType="link"
       CommandTitle="Request Item"
       CssClass="button blue"
       CssStyle="font-size:10px"
       OnRequestSentCalled = "OnInvite"
    /%>
 </asp:Content%>




Configuration

Configuration of the Facebook Request Dialog ASP.NET control is done in ASPX page by setting mandatory property Message and other optional properties. 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
Message
String
Message of request dialog.
facebook login button asp.net
Title
String
Title of request dialog.
facebook login button asp.net
FriedId
String
Id of friend to which request has to be sent. If omited, friend selector is shown.
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



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

"As a facebook "newby", developing a Facebook application is quite a challenge. You need to learn to Facebook concepts, the ever changing facebook APIs, working around APIs being depreciated. I found the libraries provided by Vatlab extremely helpful. Within hours I got the Facebook functions that I needed up and running. The documentation combined with the online tutorial was all that I needed.

"What also makes this product stand out in a IT world where decent product support is becoming a big issue, is the way developer of the libraries handled a question I had. The reply came very quickly and was to the point. It was a real pleasure to deal with him. I can only recommend this library and I’m sure that we will continue to see exciting new features in future."

Peter Cabus, Sr. Consultant, IT & Video Consultancy

Customer Spotlight



Vote for your favorites

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