eventCreateFBEvent
public static int eventCreateFBEvent(string token,string EventID ,string PageID,string PageName,string PageToken,string Eventname,string StartTime,string Location,string Description)
Create the event on Facebook. Returns the event created on Facebook or not
Section
Event Related Methods

Parameters
string tokenA valid token for your account. To generate a token, use the login method.
string EventIDThe Event ID which you want to create on Facebook
string PageIDThe PageID on which you want to create event
string PageNameThe PageName on which you want to create event
string PageTokenThe PageToken on which you want to create event
string EventnameThe Event name which you want to create on Facebook
string StartTimeThe Event start time which you want to create on Facebook
string LocationThe Event location which you want to create on Facebook
string DescriptionThe Event description which you want to create on Facebook

Returns
intReturns the event created on Facebook or not


Examples
download example code
xmlrpc_eventCreateFBEvent.php


  1. <?php
  2. /**
  3. This Example shows how to authenticate a user using XML-RPC.
  4. Note that we are using the PEAR XML-RPC client and recommend others do as well.
  5. **/
  6. require_once 'XML/RPC2/Client.php';
  7. require_once 'inc/config.php';
  8. $client = XML_RPC2_Client::create($apiURL);
  9. $token = $client->login($apiLogin, $apiPassword);
  10. $EventID = '484';
  11. $PageID = '...';
  12. $PageName = '...';
  13. $PageToken = '...';
  14. $Eventname = 'MyEventName';
  15. $StartTime = '...';
  16. $Location = 'Event Location';
  17. $Description = 'Event Description';
  18. $Output = $client->eventCreateFBEvent($token,$EventID,$PageID,$PageName,$PageToken,$Eventname,$StartTime,$Location,$Description);
  19. ?>