Facebook Restful PHP Client - get Events of a User

Posted by choise on Stack Overflow See other posts from Stack Overflow or by choise
Published on 2010-03-11T21:31:30Z Indexed on 2010/03/11 21:34 UTC
Read the original article Hit count: 299

Filed under:
|
|
|

Hi,

im using the Facebook PHP Client library and want to get the Events of a user without first logging in as a user.

Is that possible?

I got the User ID and the events.get method has a parameter UID.

<?php
//  Configure
$apiKey     = 'xxx';
$secretKey  = 'xxx';

// Include Lib
require_once('facebook.php');

// init main object
$facebook = new Facebook($apiKey,$secretKey);
$events = $facebook->api_client->events_get(123456);
?>

so this piece of code does not work. if i first require a login of a certain user, i get my results. isnt it possible to get events of a user without logging in?

© Stack Overflow or respective owner

Related posts about php

Related posts about facebook