> I opened my first twitter account and I am getting the feel of it.
> 
> I see I can delete entries.
> 
> So if I delete an article on my web site wouldn't be better to delete
> the tweets related to it in my twitter account?

You certainly can, if you want, but my point is not to rely on this. Twitter
may disable the ability to delete if they're running behind, and some clients
will cache the tweets even after you've deleted them. You're still going to
have to account for the case of bogus articles getting referenced, and you do
not have the guarantee that a deleted tweet is not out there somewhere. (In
fact, it probably *is* out there somewhere.)

> So basically I would do the following:
> 1. Create a table on my database named ArticlesTweets with the
> following columns:
>     Guid ArticleID
>     Int TweetID
> 
> 2. Every time an article is Created or Updated I would create a tweet
> with Article's Title + Article's TinyUrl.
>     I then receive the StatusId and create a new record in
> ArticlesTweets.
> 
>     There is only one problem here:
>     Consider I create an article but after i created i see i made an
> error on the title.
>     So i go correct it ... with this approach my twitter account would
> get two tweets: the right and the wrong.
>     I am not exactly sure how to put this on ... any idea?

You know what your article ID is, so you make a new post, and in your
database (presumably using article ID as the key) you update that entry
with the new tweet ID. You can't update the old tweet.

-- 
------------------------------------ personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * [email protected]
-- Males are biologically driven to go out and hunt giraffes. -- Newt Gingrich

Reply via email to