3

I have followed this guide for PHP Twitter Apps by OAuth

Here in test.php the last line i.e:

$oauth->post(‘statuses/update’, array(‘status’ => “hello world”));

doesn't work.

However, in test.php up to the:

echo "Connected as @" . $credentials->screen_name;

line, everything works, but the last line (i.e, post) is not working.

After completing the full process, I can’t see any tweet in the Twitter account. I attempt the full process from the link many times carefully, but all attempts have failed thus far.

Please Help me solve me my problem if you note any potential problem areas from the information I have provided or possibly refer me to a alternative tutorial that I should consider.

1 Answer 1

1

It seems like you set your Application setting as READ-ONLY (look up section about read/write access).

Furthermore, you can debug it this way:

$result = $oauth->post('statuses/update', array('status' => "hello world"));
var_dump( $result );

and see the result of this var_dump.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a lot sir. It's working now well. I'm so thankfull to u. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.