title: Facebook API - Fatal error: Uncaught OAuthException
body: <p>I created a Facebook application, and I get this error:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught OAuthException: Invalid OAuth access token signature. thrown in /var/www/customers/vh-394/web/home/dev.a-soft.hu/ssl/api/facebook/xzona/sdk/src/base_facebook.php on line 1106 </p>
  </blockquote>
  
  <p>I'm new with developing Facebook applications and have lost the "App domain", "Site URL", "Canvas URL", "Secure Canvas URL" settings.</p>
  
  <p>Probably there are some URL-settings error, but I don't know exactly how secure URLs work, and how Facebook authentication works.</p>
  
  <p>Can anyone please help me about how to set these URLs above and how I can correct this error?</p>
  
  <p>Thanks</p>
  
  <p>EDIT:</p>
  
  <p>There is a game I'd like to integrate into Facebook, so FB users can play with it, share points, etc. You can find this game here:</p>
  
  <p><a href="https://ssl.a-soft.hu/api/facebook/xzona/_index.php" rel="nofollow">https://ssl.a-soft.hu/api/facebook/xzona/_index.php</a></p>
  
  <p>If you look at this page, you can see me and some of my FB friends, but it's not real, I just learned how FB stores data in arrays so I generated them. In this file there is no connect to FB, or any FB scripts.</p>
  
  <p>The real file is <code>index.php</code>, where everything happens. Some months ago I started to create this app using Heroku, but then I bought real ssl domain.</p>
  
  <p>Anyway, the way that my app tries to connect with FB, authenticating it, is the way that Heroku uses.
  So it includes "AppInfo.php", "utils.php", "FB sdk" (as Heroku), but I don't know if I failed something to use correctly.</p>
  
  <p>On FB dev page, I didn't fill "App Domains" field, and under "Select how your app integrates with Facebook", I checked only "App on Facebook". In there I filled the fields exactly like this:</p>
  
  <p>Canvas URL: <a href="https://ssl.a-soft.hu/api/facebook/xzona/" rel="nofollow">https://ssl.a-soft.hu/api/facebook/xzona/</a>
  Secure Canvas URL: (same)
  Canvas Page: apps.facebook.com/xzonahu</p>
  
  <p>And now I still have the same error:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught OAuthException: Invalid OAuth access token signature. thrown in /var/www/customers/vh-394/web/home/dev.a-soft.hu/ssl/api/facebook/xzona/sdk/src/base_facebook.php on line 1106</p>
  </blockquote>
  
  <p>Hope you can help! :)</p>