Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.33/5 (2 votes)
See more:
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
Posted
Comments
ZurdoDev 1-Jul-13 14:31pm    
I'll bet twitter has some code. Did you check there?

1 solution

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:

VB
OAuthWebSecurity.RegisterTwitterClient(
                consumerKey: "blahblahblah",
                consumerSecret: "secretblahblah");


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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900