You are here

function fb_devel_page_app in Drupal for Facebook 7.4

1 string reference to 'fb_devel_page_app'
fb_devel_menu in ./fb_devel.module

File

./fb_devel.module, line 189
Makes development with Drupal for Facebook much easier. Keep this module enabled until you're confident your app works perfectly.

Code

function fb_devel_page_app() {
  dpm(func_get_args(), __FUNCTION__);
  $markup = array(
    '#type' => 'markup',
    '#prefix' => '<p>',
    '#suffix' => '</p>',
  );
  $app = fb_get_app();
  try {
    $adata = fb_graph($app['client_id']);
    $output[] = array(
      '#markup' => dprint_r($adata, 1),
    ) + $markup;
  } catch (exception $e) {
    fb_log_exception($e);
  }
  return $output;
}