srikanth reddy wrote:
The problem is with the original retweet status id only. we always give original status id for status/retweet method not your friends retweeted status id.After retweeting this original status how do you prevent the user from retweeting this original status again.
As far as I can tell, the problem isn't really about preventing the user from retweeting the same tweet multiple times, but instead making sure that the user sees that he's already retweeted something. This is a general problem with the Twitter API. For example, you can run into the same problem with favorites or with following/blocking somebody. You would mitigate this primarily by polling retweeted_by_me as regularly as you would poll favorites, paying attention to the fact that a retweet must have a status_id higher than the tweet being retweeted. And, like favorites, you are not going to get a perfectly consistent view, because there's no notification when the user undoes a retweet, un-favorites something, or un-follows somebody. The twitter websites have the same problem with inconsistency in their display of the actual server state.

If/when the API adds an indication that another endpoint has modified the state so your app can can do an automatic full, slow, resource-intensive refresh, it will be easier to show consistent state in apps. Until then, just do the best you can and provide a manual full refresh command. I think Twitter's users mostly understand that things get "weird" sometimes; if they weren't so forgiving they would never have accepted the fail whale or waited through the various DoS attacks.

Regards,
Brian

Reply via email to