title: Get stuck in posting to facebook
body: <p>I'm new in facebook apps development and I'm get stuck on how to post to facebook.
  I've read tutorials, and do according to them.</p>
  
  <p>Here is the code :</p>
  
  <pre><code>&lt;?php
  
  require 'facebook.php';
  // Create our Application instance (replace this with your appId and secret).
  
  Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER] = false;
  Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYHOST] = 2;
  
  $facebook = new Facebook(array(
    'appId' =&gt; 'xxx',
    'secret' =&gt; 'xxx',
    'cookie' =&gt; true,
  ));
  
  
  //Request params
  if(!($_GET['code'])) {
      header("Location:https://www.facebook.com/dialog/oauth?client_id=xxx&amp;redirect_uri=" . urlencode("http://localhost/facebook/examples/") . "&amp;scope=publish_stream");
      //header("Location:http://www.google.com");
       exit;
  } 
  
  $token = $_GET['code'];
  echo "token " . $token
  
  
  $status = $facebook-&gt;api('/me/feed', 'POST', array('message' =&gt; 'This post came from my app.', 'access_token' =&gt; $token));
  var_dump($status);
  
  ?&gt;
  </code></pre>
  
  <p>Result:<br>
  Fatal error: Uncaught OAuthException: Bad signature thrown in     C:\wamp\www\facebook\examples\facebook.php on line 543</p>
  
  <p>Did I miss something?</p>