I'm not exactly sure what you're trying to do with, "try" and "catch". They have to be functions, and I see several problems with that: for one, you do not say function before them and two, if you're calling the function already set in facebook.php, you wouldn't do so with brackets, but with parenthesis.
If I'm wrong, I'm going to look stupid. But that's all I could see that made me wonder.
ex:
PHP Code:
function try() {
if (!$facebook->api_client->users_isAppAdded()) {
$facebook->redirect($facebook->get_add_url());
}
}
Thou com'st in such a questionable shape
Hamlet, Act 1, Scene 4
Bookmarks