title: Twitter Codebird.php - Simple Tweet Function Not Working
body: <p>For the life of me I cannot figure out why this is not working. The permissions of the oauth app are set to read write. I double checked to make sure the keys were in the correct spots and were correct; I even regenerated new keys. I've also tried both relative and direct links to the codebird.php file which is located in the same directory as my functions file.</p>
  
  <pre><code>function code_bird(){
          // require codebird
  require_once('codebird.php');
  
  \Codebird\Codebird::setConsumerKey("ConsumerKey", "ConsumerSecret");
  $cb = \Codebird\Codebird::getInstance();
  $cb-&gt;setToken("AccessToken", "Access Secret");
  
  $params = array(
    'status' =&gt; 'test'
  );
  $reply = $cb-&gt;statuses_update($params);
  }
  </code></pre>
  
  <p>The function is on a test page and should call the function when the page loads.</p>
  
  <pre><code>&lt;?php code_bird(); ?&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated. I'm not too familiar with codebird, but it seems like it should be pretty straight forward.</p>