如何在ASP.NET网站中添加Twitter登录按钮 [英] How add Twitter login button in ASP.NET websites
问题描述
我正在尝试在我的网络应用程序中添加社交登录网站登录。我能够添加Facebook登录还可以登录gmail。但对于Twitter我无法找到任何适当的nuget包以便于实现。我尝试了tweetsharp,tweetmosharp ..但是他们在这一行给了我错误
i am trying to add social login website login in my web application.I am able to add Facebook login also gmail login. But for Twitter i cant find any proper nuget packages for easy implementation.I have tried tweetsharp,tweetmosharp.. but they give me error on this line
OAuthAccessToken accessToken = service.GetAccessToken(requestToken, oauth_verifier);
值对于int32来说太大或太小了。
i在nuget中尝试了很多dll,而且都失败了.Is有任何工作库用于此目的。如果有一些有用的链接与它的实现。
我无法尝试Twitterizer因为它需要旧版本的newtonsoft。 Plz帮助我提供了有用的链接或一些想法。
我们需要用户的电子邮件地址后,当你提供链接时,我需要用b / b
确保他们不是mvc impementations < br $> b $ b
我尝试了什么:
i用tweetsharp试过这个
[ ^ ]
给我用户ID但我无法收到电子邮件
value was wither too large or samall for int32.
i have tried many dll availabe in nuget and all was failure.Is there any working library for this purpose .If there is give some useful link with its implementation.
I cant able to try Twitterizer since it need a old version of newtonsoft. Plz help me with useful link or some ideas.
I need email address of users after they loged in
when you give link plz make sure that they are not mvc impementations
What I have tried:
i have tried this with tweetsharp with this
[^]
which give me userid but i cant able to get email
推荐答案
参考下面的链接。它告诉你一步一步的实现。
Twitter外部登录设置| Microsoft Docs [ ^ ]
代码! MVC 5应用程序与Facebook,Twitter,LinkedIn和谷歌OAuth2登录(C#)| Microsoft Docs [ ^ ]
refer below link. It tells you step by step implementation.
Twitter external login setup | Microsoft Docs[^]
Code! MVC 5 App with Facebook, Twitter, LinkedIn and Google OAuth2 Sign-on (C#) | Microsoft Docs[^]
这篇关于如何在ASP.NET网站中添加Twitter登录按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!