CreateEvent Method

Facebook API Wrapper

Collapse image Expand Image Copy image CopyHover image
Create a new Event on behalf of the loggedin user for the page

Namespace: FacebookWrapper.ObjectModel
Assembly: FbGraphApiWrapper (in FbGraphApiWrapper.dll) Version: 6.2.1.2 (6.2.1.2)

Syntax

C#
public Event CreateEvent(
	string i_Name,
	DateTime i_StartTime,
	Nullable<DateTime> i_EndTime = null,
	string i_Message = null,
	string i_Location = null,
	Nullable<Event..::..ePrivacy> i_PrivacyType = null
)
Visual Basic
Public Function CreateEvent ( _
	i_Name As String, _
	i_StartTime As DateTime, _
	Optional i_EndTime As Nullable(Of DateTime) = Nothing, _
	Optional i_Message As String = Nothing, _
	Optional i_Location As String = Nothing, _
	Optional i_PrivacyType As Nullable(Of Event..::..ePrivacy) = Nothing _
) As Event
Visual C++
public:
Event^ CreateEvent(
	String^ i_Name, 
	DateTime i_StartTime, 
	Nullable<DateTime> i_EndTime = nullptr, 
	String^ i_Message = nullptr, 
	String^ i_Location = nullptr, 
	Nullable<Event..::..ePrivacy> i_PrivacyType = nullptr
)

Parameters

i_Name
Type: System..::..String

[Missing <param name="i_Name"/> documentation for "M:FacebookWrapper.ObjectModel.Page.CreateEvent(System.String,System.DateTime,System.Nullable{System.DateTime},System.String,System.String,System.Nullable{FacebookWrapper.ObjectModel.Event.ePrivacy})"]

i_StartTime
Type: System..::..DateTime

[Missing <param name="i_StartTime"/> documentation for "M:FacebookWrapper.ObjectModel.Page.CreateEvent(System.String,System.DateTime,System.Nullable{System.DateTime},System.String,System.String,System.Nullable{FacebookWrapper.ObjectModel.Event.ePrivacy})"]

i_EndTime (Optional)
Type: System..::..Nullable<(Of <(<'DateTime>)>)>
(optional)
i_Message (Optional)
Type: System..::..String
(optional)
i_Location (Optional)
Type: System..::..String
(optional)privacy type (Open/Closed/Secret) - optional
i_PrivacyType (Optional)
Type: System..::..Nullable<(Of <(<'Event..::..ePrivacy>)>)>

[Missing <param name="i_PrivacyType"/> documentation for "M:FacebookWrapper.ObjectModel.Page.CreateEvent(System.String,System.DateTime,System.Nullable{System.DateTime},System.String,System.String,System.Nullable{FacebookWrapper.ObjectModel.Event.ePrivacy})"]

Return Value

The newly created Eventobject

Remarks

You can create an event for a page by issuing an HTTP POST request to PAGE_ID/events

.NET Framework Security

Permission Description
create_event, manage_pages

See Also