Note that there are some explanatory texts on larger screens.

plurals
  1. POcreate events on my Application's page
    primarykey
    data
    text
    <p>I am in a process of writing an app which works this way 1. Asks a user permission for events_create, publish_stream 2. Gets the access_token for the same 3. takes input of Title, date, time, location( ie all inputs) from a form and then calls graph api like /$app_id/events along with access token and post date</p> <p>I want this to create an event within my APPLICATION's events and hence I use $app_id instead of ..../me/events</p> <p>But it creates an event on USER's wall ???</p> <p>I want users to be able to create an event on my wall. It should be an event whose owner is the application and the user should get invited along with his contacts( if he chooses so) ...</p> <p>Basically, I think POST to /$app_id/events and /me/events work the same, I think it should not ... Am I missing something?</p> <p>Thanks in advance ..</p> <p>AC</p> <hr> <p>HiShakyeb,</p> <p>Same result ... It just creates an event in my account rather than the application's.</p> <p>Here is the code I am using ..</p> <pre><code> $url = "https://graph.facebook.com/$app/events?" . $access_token; $params = array(); // Prepare Event fields foreach($_POST as $key=&gt;$value) if(strlen($value)) $params[$key] = $value; $params['name']=mysql_real_escape_string($params['name']); $params['description']=mysql_real_escape_string($params['description']); $params['location']=mysql_real_escape_string($params['location']); $params['end_time']=date('Y-m-d H:i:s', mktime(0, 0, 0, date("m") , date("d")+1, date("Y"))); $params['privacy_type']="SECRET"; // Start the Graph API call $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $params); $result = curl_exec($ch); $decoded = json_decode($result, true); curl_close($ch); </code></pre> <p>I also tried just app/events? instead of $app/events?</p> <p>Thanks a lot ...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload