Facebook Application Template Tutorial - not canvas application - asp.net-mvc

I'm using Facebook Application Template, The template is creating canvas application, and i want a regular one with just Facebook authentication,
if i'm canceling the "App of Facebook" i get an error "Sorry, the application you were using is misconfigured. Please try again later.".
How can i get the Facebook application work with mvc 4.5 template but as regular app and not canvas.

The Facebook Application Template is designed as a Canvas application, which is not what you're looking for.
Fortunately, the ASP.NET team built a number of alternative authentication providers into the default ASP.NET Internet Application template.
Fire up VS, and create a new MVC 4 Internet Application project. Open AuthConfig.cs, uncomment the 3 Facebook lines, and paste in your application details (get these from the Facebook developers center). Now, your application will support both local authentication (username/password) and Facebook Authentication!
For a full tutorial: http://www.asp.net/mvc/overview/getting-started/using-oauth-providers-with-mvc

Currently, the ASP.NET Facebook Template is only for Canvas Applications. We are planning to support web applications either with the same template or a new template at a later time. For now, you can see a sample ASP.NET web app here: https://github.com/facebook-csharp-sdk/facebook-aspnet-sample. It is a bit dated (MVC3), but it should help you get started.

Related

Sign in with Apple for react.js app hosted on GitHub Pages

I am building a small web app with react.js to learn how to use it and I would like to learn how to integrate Sign-in with Apple button but I have run into an issue. My project is hosted in GitHub Pages and Apple doesn’t recognize https://username.github.io/repo/ as a valid url when doing the "Web Authentication Configuration” step. I figure I can move my project and get a domain, a real url and, all that but that's far too much work to get a button on a web app that no one will ever see. Is there another way to get it working while still using GitHub Pages? I have been following this tutorial for reference.

Exposing authenticated data from Azure Mobile App via an ASP.NET MVC 5 application

I'm trying to access authenticated data from Mobile apps via Asp.Net MVC5.
The backend is .NET (not Node.JS) and I'm using the C# SDK (not Javascript). Since custom auth (user\pwd) is not yet available for Mobile Apps I'm trying to connect with Facebook.
I've found this post but is very outdated now.
If you are trying to do both a mobile app clients AND the MVC client, then you might need to specify a list of OAuth URLS that are valid per:
https://developers.facebook.com/docs/facebook-login/security#surfacearea
You can set the list of valid callback URLs on the settings -> Advanced tab in the facebook app management.

Using Linkedin to signin into my iPhone native application

I have googled a lot on this and i have found integrations of Linkedin in an iPhone application which can be used for sharing purposes.
But my requirement is a bit diffrerent , what i need to do is :-
When i open my iPad native application , i want to use " Log In using Linked Account"
The user enters his Linked in credentials and once they are authenticated/validated the control comes back to my iPad native application .
The user continues exploring the rest of the application.
Now i have found a few links that explin how to use " Login using Linkedin feature " but it's for websites , i couldnt locate anything on how to log into my native application using LinkedIn credentials
On the libraries and tools page on that developer site: https://developer.linkedin.com/documents/libraries-and-tools
There is a link to an example iOS client application:
https://github.com/synedra/LinkedIn-OAuth-Sample-Client
This application includes the OAuth dance as well as examples of read and write actions, and can be used as an example of how to implement OAuth in an application.
LinkedinIOSHelper you can use this library if you want to. It is my library written well documentation to understand easily.

Creating a facebook app with Vaadin?

Is it possible to create a facebook app using the Vaadin web toolkit?
It is possible. At least there is one http://apps.facebook.com/possessed/ (not maybe the most beautiful one, but working). See also discussion at the vaadin forum: http://vaadin.com/forum/-/message_boards/message/169189
Definetely possible. As you have an iframe for your app in facebook and you yourself host the application so there is no limit for that. You may also want to use restfb for easily interacting fb graph api
You can create a Facebook application using any language/framework/etc. The application is loaded in a Facebook Canvas (iframe), but your application isn't hosted on Facebook itself, rather it's hosted on an external app/web server of your choosing. So, as long as your server supports the language of your choosing, you are good to go.

Using Facebook as single signon

I am developing an mvc.net application and would like to use Facebook Connect as single signon, but do I need to create a Facebook application from within their interface, or can I use the login features without creating an application?
It is required that you register your application through Facebook even just for doing single sign-on. This is mentioned in their instructuctions.
"The JavaScript SDK requires that you register your application with Facebook to get an app id for your site."
I do know that it is required if you are doing any server-side work as well.

Resources