How to remove Tweets from User Timeline using PHP


#1

hi,
i want to delete tweets from user timeline .For that i used:

`$retweet1=$twitteroauth->get(‘statuses/destroy/:id’, array(‘id’ => ‘570916169206509568’));

but it showing error:
[errors] => Array
(
[0] => stdClass Object
(
[message] => Your credentials do not allow access to this resource
[code] => 220
)

    )

plese tell me how can i delete tweet from my app.Thanks
`


#2

Hi, I found some same error…please check following questions.

  • app has Read/Write access
  • you can use statuses/update via the App.
  • Where do you hosted app? (Local? Remote?- Where??)

#3

You are supposed to replace path :params with their values:

$twitteroauth->get('statuses/destroy/570916169206509568');

#4

Sir,from friday onword my app show error “Rate limit exceeded” Whereas i didn’t used my app( not login or post).How can i fix that