开发者

twitter update status with javascript

how can I update my twitter status from a w3c widget using only http/css/javascript? this is a mobile based widget.

i have my own tweetbox already. what i want to do is when the 'tweet' button is cli开发者_高级运维cked, my twitter status will be updated. I have read about oauth and I find it difficult to understand and implement. I dont think cURL could be implemented with javascript either.. how else can this be done?


Despite my pessimistic comment, I've decided that there is a way to do this. If you authenticate the user with OAuth (there's no way around it) on a server, you can keep those tokens around and use AJAX posts from the widget to your server to make the updates to Twitter. Basically, you'd be using your server to do the heavy lifting, almost like a proxy.

Honestly, though, you still need to use OAuth at the end of the day. And frankly, there's no way to do that in a widget.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜