I've been trying to post a simple text to Twitter for a while, but it does not work. I have taken the right steps, but it does not work. Can anyone help me?
Code:
& lt ;? Php // is required codebird need_once ('codebird.php'); Countercurrent $ test_import; \ Codebird \ Codebird :: setConsumerKey ("myConsumerKey", "myConsumerSecret"); $ Cb = \ Codebird \ Codebird :: getInstance (); $ Cb- & gt; Settoken ("myAccessToken", "myAccessTokenSecret"); $ Params = Array ('Status' = & gt; 'Auto Post on Twitter with PHP, http://goo.gl/OZHaQD #php #twitter'); $ Answer = $ cb-> Status_update ($ params); ? & Gt;
I have: Ubunutu (at VMWare) 14.04
PHP 5.5.9 All files (codebird.php, cacert.pem and above file) are in the same Directory.
PS: Import of codebird.php works
Comments
Post a Comment