title: atal error: Uncaught OAuthException: Error validating application. Application has been deleted.
body: <p>I am gone mad since i cannot solve this.</p>
  
  <p>Please help me. when i goto the php (Which is clixbox.net/fbupload.php)i created, after getting the user permissions, it gives me this error.
  Fatal error: Uncaught OAuthException: Error validating application. Application has been deleted. thrown in /home/clixcube/public_html/clixbox.net/library/base_facebook.php on line 1271</p>
  
  <p>my fbupload.php file is this </p>
  
  <pre><code>&lt;?php
  require_once 'library/facebook.php';
  $facebook = new Facebook(array(
   'this is where i put my app id'  =&gt; $app_id,
   'my app secret' =&gt; $app_secret,
   'fileUpload' =&gt; true
  ));
  
  
  //It can be found at https://developers.facebook.com/tools/access_token/
  $access_token = 
  
  'this is where i put my token';
  
  $params = array('access_token' =&gt; $access_token);
  
  //The id of the fanpage
  $fanpage = '232241216922182';
  
  //The id of the album
  $album_id ='281594988653471';
  
  //Replace Wa33D94 with your Facebook ID
  $accounts = $facebook-&gt;api('/Wa33D94/accounts', 'GET', $params);
  
  foreach($accounts['data'] as $account) {
   if( $account['id'] == $fanpage || $account['name'] == $fanpage ){
    $fanpage_token = $account['access_token'];
   }
  }
  
  
  $valid_files = array('image/jpeg', 'image/png', 'image/gif');
  
  if(isset($_FILES) &amp;&amp; !empty($_FILES)){
   if( !in_array($_FILES['pic']['type'], $valid_files ) ){
    echo 'Only jpg, png and gif image types are supported!';
   }else{
    #Upload photo here
    $img = realpath($_FILES["pic"]["tmp_name"]);
  
    $args = array(
     'message' =&gt; 'This photo was uploaded via Clixbox.net',
     'image' =&gt; '@' . $img,
     'aid' =&gt; $album_id,
     'no_story' =&gt; 1,
     'access_token' =&gt; $fanpage_token
    );
  
    $photo = $facebook-&gt;api($album_id . '/photos', 'post', $args);
    if( is_array( $photo ) &amp;&amp; !empty( $photo['id'] ) ){
     echo '&lt;p&gt;&lt;a target="_blank" href="http://www.facebook.com/photo.php?fbid='.$photo['id'].'"&gt;Click here to see this photo on 
  
  Facebook.&lt;/a&gt;&lt;/p&gt;';
    }
   }
  }
  
  ?&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Upload a picture to facebook&lt;/title&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
   &lt;!-- Form for uploading the photo --&gt;
   &lt;div class="main"&gt;
    &lt;p&gt;Select a photo to upload on Facebook Fan Page&lt;/p&gt;
    &lt;form method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" enctype="multipart/form-data"&gt;
    &lt;p&gt;Select the image: &lt;input type="file" name="pic" /&gt;&lt;/p&gt;
    &lt;p&gt;&lt;input class="post_but" type="submit" value="Upload to my album" /&gt;&lt;/p&gt;
    &lt;/form&gt;
   &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And the base_facebook.php line (1271) is this</p>
  
  <pre><code>    $e = new FacebookApiException($result);
  </code></pre>
  
  <p>Any idea on how to solve this?</p>