I have an auto poster to tweet news stories as they are added, but need to know how to get the ID of the post just submitted so I can use it to delete the post when the correlated story is deleted. Any ideas?
I'm not entirely sure why - think of it this way (depending on how long the posts usually stays up): 1. why delete the newsposts at all? Just toss them in an archive-category or something similar (without changing the url) 2. why do you have to delete tweets even IF you delete the posts? Mostly, people won't look very far back on a Twitter-feed. Especially when it comes to auto-posts.
There's a few reasons... sometimes news stories get updated, posted accidentally, mistakes etc. If there's an inaccuracy in a news story, it's fairly important to make sure it's deleted from Twitter for integrity reasons.
Well, you could probably import the Twitter-feed, and filter on either a post-id or link or something similar, and figure out which tweet to delete - however, I'm not sure how you remotely delete a tweet -for that you'll need to look at the Twitter API.
I'm using the API to post the tweet, just need to figure out how to get the ID of that tweet using the API.
Maybe this thread can help you? http://stackoverflow.com/questions/2841721/why-a-wrong-tweet-id-is-returned-from-twitter-api