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

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

问题描述

借助 Twitter 的新 OAuth 界面,他们的 API 现在比以前复杂许多倍.我什至还没有看过 Facebook 的 API.

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.

我想要做的就是代表用户发起 Twitter 推文或 Facebook 共享,并能够从 ASP.NET 应用程序控制这些消息的初始文本.

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.

我在 SO 上发现了一些类似的问题,但他们没有答案.

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

我知道有像 AddThis 和 ShareThis 这样的东西,但我需要一些东西来控制默认消息.它必须包含一个带有特定于当前用户的代码的链接.

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 集成...

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

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.

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

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 集成,请查看 Facebook 开发人员工具包.与 Twitterizer 一样,它是一个开源、免费的 API,应该能让您朝着正确的方向前进.

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.

快乐编程!

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

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