Deeper Facebook Integration in ASP MVC - asp.net

I am an admin of a Facebook Page. Now it want to involve it in my MVC Project. I was wondering if it is possible to :
1)fetch its data (such as profile pic ,about,events,who is attending etc) from fb and showing it in my ASP MVC View.
2) involve all the features provided by fb (to the page)in MVC project. e.g. creating an event, adding photos and videos.
3) is there any way to Authorize forms via fb authentication.
if this is achivable how should i proceed? what are the prerequisites?
any blog/link/tutorial/study material for this?

Facebook has a clean API you can use to integrate it into your applications. It's called the Graph API, they have the docs on their site:
http://developers.facebook.com/docs/coreconcepts/
The Graph API is designed to perform various operations, if something is to be done, it can be done via the Graph API.
As for the authentication, yes, it's fairly simple, Facebook implements the OAuth2 protocol. Just google on "C# OAuth2 Facebook" or something similar and you will get links to complete tutorials.
The docs from Facebook team are here:
http://developers.facebook.com/docs/authentication/server-side/

Related

FreeOTP Two factor authentication in .Net Application

How to set up two factor authentication in .Net application using FreeOTP?
I want to use two factor authentication during login or somewhere else like approvals etc. looking for the sample code or article which can guide me how to apply in application. thanks
here is the link for info about FreeOTP Authentication
https://freeotp.github.io/
I'm also searching these days for a solution to integrate Google Authenticator and FreeOTP in ASP.NET Identity.
FreeOTP writes on their page (https://freeotp.github.io):
FreeOTP implements open standards: HOTP and TOTP. This means that no proprietary server-side component is necessary
So you can use any free OTP nuget package - and you can serve both Google Authenticator and FreeOTP as well. For example: https://www.nuget.org/packages/OtpSharp/
Example for ASP.NET Identity 2.0
I have found an example on the microsoft docs (https://learn.microsoft.com/en-us/aspnet/identity/overview/features-api/two-factor-authentication-using-sms-and-email-with-aspnet-identity#enabling-2fa) and they are referring there to an interesting tutorial:
https://www.jerriepelser.com/blog/using-google-authenticator-asp-net-identity/
In this tutorial they are using "OtpSharp" to integrate the google authenticator. It should work in the same way for FreeOTP (but I havn't tested it).

Is there a good ASP.NET package to implement StackExchange-style authentication and profiles

I'm familiar with ASP.NET Membership, Profile, forms auth, etc., as well as OpenId/OAuth. However, I haven't found a great resource on rolling together a really smart, modern OpenId-enabled login and profile system similar to what StackExchange does. Is there a package or template that adds in StackExchange-like authentication and profiles? Ideally, what I'm looking for has these features:
NuGet installation into an existing MVC project OR a starter template for MVC
Allows authentication with OpenId, FaceBook, Twitter, or in-site with a clean UI
Allows associating FaceBook and Twitter OAuth with an existing account that may or may not use OpenId.
Allows merging and modifying multiple authentication methods, similar to the way StackOverlow does if you log in with multiple methods.
DotNetOpenAuth comes close, but still relies on a developer to handle the more complex cases of merging logins and associating OAuth tokens with users. It seems like there would be a good base template or package by now that gives you a full modern authentication story fairly quickly.
Maybe StackId could be useful. It's built on top of DotNetOpenAuth by StackExchange team.
You can find its description in the list of StackExcnage open source projects. But it doesn't have Nuget package.

spring sample webapp connecting with twitter

I'm working on sample webapp that I'm supposed to show to my CTO.
It's basically a spring-mvc HelloWorld kind of thing whose only request is that users (in order to actually get to see "hello world!") need to login into it using their twitter account.
I find it amazingly hard to set it up.
I'm tangled among 2 different docs (spring-security and spring-social-twitter) and I'm now wondering whether I should actually go checkout spring social oauth.
Any help will be much appreciated.
There are a few projects on GitHub that you can use for example code. The first is "Spring Social Security":
https://github.com/socialsignin/spring-social-security
This is a library you can use for implementing Spring Security using Spring Social as basically the "back end" system for your webapp's user accounts and login. There is a demo webapp using it here:
https://github.com/socialsignin/spring-social-security-demo
You may be able to just drop this library in, though I haven't tried it yet so I'm not 100% sure.
I also have a demo webapp that integrates Spring Social and Spring Security but a little differently. The idea is to add in Spring Social to an existing app that already implements Spring Security with its own user accounts and login info stored in a database.
https://github.com/sdouglass/spring-security-social

how to write on facebook wall in ASP .Net

I want to post on facebook wall from my website, i had built the site in ASP .Net, I don't know how to perform this task. Can anyone please guide me or give me a script to post on facebook wall.
Here is a documentation on Getting started with Facebook developers
The Graph API is the core of Facebook Platform, enabling you to read and write data to Facebook. It provides a simple and consistent view of the social graph, uniformly representing objects (like people, photos, events, and pages) and the connections between them (friendships, likes, and photo tags).
Here's a sample application from CodeProject to use the Graph API.
hope it helped !
I've had some fun playing with the Facebook C# SDK for creating Facebook applications.
Are you using C# on your site?
The SDK is quite easy to get started with and there are a few tutorials etc...
Facebook C# SDK

facebook chat in silverlight

I have a silverlight application and i want is that my application should ask for the user name and password and the client should be able to start chat with their facebook friends.Could this be done? and if so then is there sample code available
This is the question of what kind of API Facebook provides. There aren't any inherent issues here if Facebook exposes this sort of functionality to third parties. I'm not an expert in this, but reading the facebook documentation should help you out.
http://developers.facebook.com
Also maybe check out these links:
http://wiki.developers.facebook.com/index.php/LiveMessage.send
http://wiki.developers.facebook.com/index.php/Fb:chat-invite
It looks like some folks developed a framework to more easily interop facebook with .net based technologies:
http://facebooktoolkit.codeplex.com/
Here they are discussing the LiveMessage stuff:
http://facebooktoolkit.codeplex.com/Thread/View.aspx?ThreadId=62384
People did facebook chat clones on the web, and in standalone apps (http://www.faceoffim.com/), so at least in principle it's certainly doable.

Resources