发送Twitter和Facebook状态的最简单的方法 [英] Simplest Method to Send Twitter Tweet and Facebook Status

查看:244
本文介绍了发送Twitter和Facebook状态的最简单的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Twitter的新OAuth界面,他们的API现在比现在复杂多了许多倍。我还没有看过Facebook的API。



我想知道如果有一种方法使用一些更高级别的现有代码或接口,这是一个更简单的任务。



所有我想要做的都是以用户身份发起Twitter推特或Facebook分享,并且能够控制用户的初始文本消息,从ASP.NET应用程序。



我在SO上找到了一些类似的问题,但没有答案。



编辑:我知道有AddThis和ShareThis这样的东西,但是我需要一些可以控制默认消息的东西。它必须包含与当前用户特有的代码的链接。

解决方案

Twitter集成...



为了从用户代表ASP.NET应用程序制作Tweets,请查看 Twitterizer 。这是一个免费的开源项目,用于与.NET应用程序的Twitter集成。



我同意使用OAuth可能有点令人生畏,但是Twitterizer API最多包装的复杂性。我写了一篇关于在可能感兴趣的ASP.NET应用程序中使用Twitterizer的文章:使用OAuth将Twitter集成到ASP.NET网站。阅读文章后,下载最终的代码示例,这是一个演示文稿,演示如何使用Twitterizer从ASP.NET网站发布推文。



Facebook集成...



要与Facebook集成,请查看 Facebook开发人员工具包。像Twitterizer一样,它是一个开放源代码的免费API,应该让你走向正确的方向。



Happy Programming!


With Twitter's new OAuth interface, their API is now many times more complex than what it was. And I haven't even looked at Facebook's API yet.

What I'm wondering if there is a method that employs some higher-level, existing code or interfaces to make this a simpler task.

All I want to be able to do is initiate a Twitter tweet or Facebook share on the user's behalf and be able to control the initial text of those messages, from an ASP.NET application.

I found some similar questions on SO, but they had no answers.

EDIT: I know there are things like AddThis and ShareThis, but I need something that will give me control over the default message. It must contain a link with a code that is specific to the current user.

解决方案

Twitter Integration...

For making Tweets from an ASP.NET application on users' behalf, check out Twitterizer. It's a free, open-source project for integrating with Twitter from .NET applications.

I agree that using OAuth can be a bit daunting, but the Twitterizer API wraps up most of the complexity. I've written an article on using Twitterizer in an ASP.NET application that you may be interested in: Integrating Twitter Into An ASP.NET Website Using OAuth. After reading the article, download the code sample at the end, which is a working demo showing how to use Twitterizer to post a tweet from an ASP.NET website.

Facebook Integration...

For integrating with Facebook, chcek out the Facebook Developer Toolkit. Like Twitterizer, it's an open-source, free API and should get you going in the right direction.

Happy Programming!

这篇关于发送Twitter和Facebook状态的最简单的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆