Add to Profile Button

Add to Profile Button component is used to add content created with API.profile.setFBML method from Facebook Developer Toolkit to the user's wall or to the user's boxes tab. If content is already added, the button is not shown anymore. The source code for this ASP.NET control is available in C# and VB.NET languages as part of Facebook ASP.NET Controls for iFrame apps library.


    Bookmark and Share

Picture of Add to Profile Button component and popup shown after the button is pressed:

addtoprofilebutton

 

Register component by adding following line in ASPX file:

 <%@ Register TagPrefix="fvk" TagName="addtoprofile" Src="~/FVK/AddtoProfileButton.ascx" %>

Insert control in ASPX file as:

 <fvk:addtoprofile  ID="addtoprofile1" runat="server" />

 

Example of setting FBML in C# language:

 string fmbl = "<h1>Hello</h1><fb:profile-pic uid=\"" + API.uid + "\" linked=\"true\" />";
 API.profile.setFBML(API.uid, fmbl, fmbl, null);

Example of setting FBML in VB.NET language:

 Dim fmbl As String = "<h1>Hello</h1><fb:profile-pic uid=""" & API.uid.ToString() & """ linked=""true"" />"
 API.profile.setFBML(API.uid, fmbl, fmbl, Nothing)
Example shows setting FMBL with Hello text and linked picture of an user bellow it.
 

Customer Testimonials

"I highly recommend FVK for everybody doing Facebook apps in ASP.NET. In my case it paid it self up in the first hour of use. I was doing my first Facebook project, and had been stuck in resolving problems, rooted in poor documentation and bugs inthe Facebook platform and FDT, and when the deadline was closing in, I was lucky to stumble upon FVK, which enabled me to meet my obligations. I'm also very happy with the quick and flawless service I got from vatlab.com."

Helgi Örn Viggósson, Cofus PLC

Customer Spotlight



Vote for your favorites

Facebook development platform