Posted by Sanders Kaufman on 09/02/07 16:50
Enter The wrote:
> how can i replace
> try{
> if (!$facebook->api_client->users... {
> $facebook->redirect($facebook-...
> } catch(Exception $e) { //this will clear cookies for your app and
> redirect them to a login prompt
> $facebook->set_user(null, null);
> $facebook->redirect($appcallba...
> }
> from php5 to php4
It depends on how your interfaces for facebook->api_client works, but in
general, you should try to rephrase it as an if/then rather than a
try/catch for PHP4.
[Back to original message]
|