Facebook SDK for .NET - not working - asp.net

I need a Facebook login button for an ASP.NET 4.5 site (not MVC).
I have followed this tutorial for the Facebook SDK:
http://facebooksdk.net/docs/web/getting-started/
But it skips over several points, doesn't provide any downloads and just doesn't work.
How can I do this - ideally using built in methods that require little work to implement - and allow you to retrieve email from Facebook. If that isn't possible a NuGet package (ideally one that is widely used) would be fine.
The Facebook SDK for .NET looks promising but I can't get it working and can't find other examples of its use online.
UPDATE
I need the user to press login, be authenticated, then give me their email (from fb?), enter a password.
I need to know all this and manipulate it all from C# code behind.
If they are already logged into FB - and already signed up for my site - I need them to be auto logged in (I will be using custom authentication on the asp.net side).

If you need the Facebook login or singup button then you do not need Facebook .Net SDK. You need to use Facebook Javascript SDK. Then you can use the <fb:login-button> XFBML tag.
If the user is already logged in to Facebook, the plugin can show the user's profile picture, if configured to.
Please refer here: https://developers.facebook.com/docs/reference/plugins/login/

Eventually I followed this tutorial:
http://www.aspsnippets.com/Articles/Login-with-FaceBook-account-in-ASPNet-Website.aspx
This was excellent and does exactly what I need.

Related

Auto login to facebook using php sdk

Am working on facebook application using php sdk to post to facebook page as page.I need to let the user automatically log in to facebook instead of asking user to log in.
Please help
Thanks
This seems to at least partially answer the question (you need first to login from a javascript-based client on the same browser+domain):
Auto login with PHP facebook connect + JS

Force All vBulletin Sessions to Logout

I am currently building a mobile app that will use an existing vBulletin install as a login system. I've run into an issue where if a user is already signed on somewhere else, they cannot sign back on using the application. On the vBulletin site, if this happens, you are presented with a "Force Logout" button that will end all existing login sessions and allow you to login again.
Is there a way to implement such a feature use just the API? I cannot query the database, unfortunately, and my only means of accessing the vBulletin system is through api.php methods. The vBulletin API documentation is woefully incomplete, so I am hoping someone else would have an answer for this.
If it helps at all, I am using Flex and AS3 to build the application and have successful login and logout, but the logout only works if you pass an appropriate sessionHash to the API.
This was an issue with our specific vBulletin config. We had to write a custom script that would allow us to access the forcelogout.php page/script and force a logout.

(Drupal twitter module) Adding twitter account used to log in, to that user's twitter accounts list automatically

I'm using Drupal twitter module with recommended Oauth version(2.02) and I can post to twitter via API successfully. but, I have to manually authenticate the application with the user in /user/%/edit/twitter page.
But I would like to create a fully twitter-integrated web site that automatically add twitter accounts used to log in to the site, to twitter accounts of that user's list.
If somehow I managed to do this, once user log in to site via Twitter can see their own tweets in my site without adding them manually.
But I'm not sure(and looking for your kindly help) how to make this combination.
Drippic.com has already done this. Once logged in, users can tweet without having to add the account again.
I use same twitter application to do both registration and tweet-importing and the application asks for read/write access to the site.
This has fixed in later Twitter module's releases.
If anyone else has this problem, just update to the latest version and you can ditch the problem.

FacebookConnect integration with ASP.NET

I'm working on a site with a Facebook Connect integration on blog posts. I want a Facebook .NET SDK that will allow me to:
Authenticate that a user is logged into FB. The actual login will be done via the typical FBML login button and simple JS with the XD Receiver.
Be able to push data from my WebForm to the user's FB profile, such as a status update.
I do not need to:
Create an actual FB application that goes on your profile, like "Cheer for the Red Sox" app or whatever. I do completely understand that I need to create an app using the Developer application but I'm not indenting to create a real full app.
Do any special stuff other than know the user's basics and push data to the profile.
Now are there any good starting points or SDKs I should look at. I've tried Facebook.NET and also peeked into FBConnectAuth. It seems like the former is too much and the latter is too little of what I need. However, that was a quick glance so are there any people with good experiences that did simple things?
Help is much appreciated!
Have you tried this example?
Post status to Facebook profile without Facebook modal window using ASP.NET
If you have any feature requests for FBConnectAuth, please let me know.
Adam
For me, Raya's integration of Facebook Connect is the best example out there. The author also has a good blog post where he describes how he integrated it with his existing web application..

How to use Twitter as the Login for a Website

We are developing an asp.net 2.0 web application in that user can sign-up or sign-in using twitter account.
when the user click on the twitter button, it should take you to the twitter login page.
after your login is successful twitter should able to forward me back to my page webpage.
Please let me know.
eg.
twitter
For this you use Twitter's OAuth authentication framework. It's used so that users don't have to directly enter their user + password into your site. (I assume you know how the front-end to that works already.)
You can use this little example to use OAuth from .NET - it is built for ASP.NET. (The demo the guy provides is My Tweeple.)
Twitter actually includes instructions for using OAuth to make a Facebook Connect-style system.
http://dev.twitter.com/pages/sign_in_with_twitter
Twitterizer library have sample ASP.NET application that will walk you through the OAuth authorization process and attempt to explain what’s going on and how you can do the same in your application.
This article demonstrates that How to integrate Twitter into web application
using Twitterizer library.You can allow your visitors to post tweets, view their timeline and much more.
Here is an example shows how to implement Twitter OAuth with .NET and attached sample code.

Resources