IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
To present a Facebook event, you must create a wrapper.
To create the Facebook event wrapper class, perform the following procedure:
In the context menu of folder Utilities, click Add » Class...
In the Name input field, enter FacebookEvent.
Open the file FacebookEvent.cs and add the following constructors:
public
FacebookEvent()
{
this
.Id = String.Empty;
.Name = String.Empty;
.Location = String.Empty;
.StartTime = DateTime.Now;
.EndTime = DateTime.Now;
}
FacebookEvent(
string
id,
name,
location, DateTime startTime, DateTime endTime )
:
()
.Id = id;
.Name = name;
.Location = location;
.StartTime = startTime;
.EndTime = endTime;
Define the Facebook event properties by pasting the following code:
Id
get
;
set
Name
Location
DateTime StartTime
DateTime EndTime
You create the FacebookEvent class to present a Facebook event. Then, you define the Id, Name, Location, StartTime andEndTime properties that Facebook provides you when requesting the event.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important