Having a tough time catching exceptions in SF2...

I'm using KrisWallSmiths's Facebook Bundle ( 
http://github.com/kriswallsmith/KrisFacebookBundle
) for SF2 and can't seem to capture Exceptions..


$facebook = $this->container->getFacebookService();
try {
    $me = $facebook->api('/me');
} catch (FacebookApiException $e) {
    //echo $e->getResult();
}

This statement always ends with the browser outputting:

"""
500 Internal Server Error - FacebookApiException
An active access token must be used to query information about the
current user.
"""

I've tried (many, many) variations of this:

$this->dispatcher = new EventDispatcher();
$this->dispatcher->connect('application.exception', 'dbg');

But with no luck (probably because of my lack of understanding of the
event system right now).

Really appreciate any pointers.

Kind regards,

Gareth

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to