Twitter签到C#代码 [英] Twitter sign in C# code
本文介绍了Twitter签到C#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我在网站上工作,有需要。 Twitter登录。
我是在API 1.0中开发的,但现在它无法正常工作。
所以,任何人都可以共享代码或链接for twitter使用API 1.1登录
Hello there,
I am working on web-site and there is req. of twitter sign in.
I developed in API 1.0 but Now it is not working.
So, can any one share code or link for twitter sign in using API 1.1
推荐答案
你好,
阅读此链接,它描述了如何使用OAuth
http://blogs.msdn.com/b/webdev/archive/2012/08/15/oauth-openid-support-for-webforms-mvc-and- webpages.aspx [ ^ ]
基本上你需要做的就是使用Microsoft.Web。 WebPages.OAuth汇编并注册Twitter客户端:
Hello,
Read this link, it describes how to use OAuth
http://blogs.msdn.com/b/webdev/archive/2012/08/15/oauth-openid-support-for-webforms-mvc-and-webpages.aspx[^]
Basically all you need to do is use the Microsoft.Web.WebPages.OAuth assembly and register the twitter client:
OAuthWebSecurity.RegisterTwitterClient(
consumerKey: "blahblahblah",
consumerSecret: "secretblahblah");
看看MVC4项目模板,它都是内置的,你需要的所有代码都是免费的AccountController.cs文件。
Valery。
Have a look at the MVC4 project template, it's all built-in, all the code you need is there for free in the AccountController.cs file.
Valery.
这篇关于Twitter签到C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文