All pastes #542770 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-05 22:31 UTC
rendered paste body
try {
  if (!$facebook->api_client->users_isAppAdded()) {
    $facebook->redirect($facebook->get_add_url());
  }
} catch (Exception $ex) {
  //this will clear cookies for your application and redirect them to a login prompt
  $facebook->set_user(null, null);
  $facebook->redirect($appcallbackurl);
}