title: An error occurred with app. Please try again later
body: <p>i am getting An error occurred with app name. Please try again later.
  my app id ,secret id and redirect url is correct still am getting this error</p>
  
  <p>my code is this</p>
  
  <pre><code>&lt;?php
  require $DOCUMENT_ROOT.'/temp/socialtest/src/facebook.php';
  // Create our Application instance (replace this with your appId and secret).
  $facebook = new Facebook(
      array(
        'appId'  =&gt; 'XXXXXXXXXXX',
        'secret' =&gt; 'XXXXXXXXXXX',
      )
  );
  // Get User ID
  
      $user = $facebook-&gt;getUser();
  if($user)
  {
      try
      {
          // Proceed knowing you have a logged in user who's authenticated.
          $user_profile = $facebook-&gt;api('/me');
      }
      catch (FacebookApiException $e) 
      {
          error_log($e);
          $user = null;
      }
  }
  // Login or logout url will be needed depending on current user state.
  if($user) 
  {
      $logoutUrl = $facebook-&gt;getLogoutUrl();
      echo $user_profile['id'];
      echo $user_profile['email'];
      echo $user_profile['user_birthday'];
      echo $user_proile['gender'];
  }
  else{
      $param = array();
      $param['scope'] = array('email');
      $loginUrl = $facebook-&gt;getLoginUrl($param);
   echo "&lt;a href='".$loginUrl."'&gt;&lt;img src='fb-login-button.png'&gt;&lt;/a&gt;";
  }
  
  
  ?&gt;
  </code></pre>
  
  <p>tell me where i am doing wrong
  everything is fine there</p>
  
  <p>ther problem is solved but now i want the auth box in popup how i can do that</p>