Is there a better solution / example solution for using Fb C # SDK v6 in ASP.NET MVC?

I am currently using Fb C # SDK v5, works as a champion. Migrating to v6 turned out to be more complicated than I expected.

So, I decided to rewrite the auth code from scratch. Is this the minimum minimum required to authenticate a user?

  • Use Fb js sdk to set appId, subscribe to auth event
  • Subscribe to the Fb.UI auth event, pass the access token to the server
  • After the server has an access token, request a schedule

In v5, I did this in the OverActionExecuting override, checking the active session (if it was not active, I would re-login through Fb). I just can't get it to work like on v6.

Is there any best practice or sample solution for using Fb C # SDK v6 in ASP.NET MVC? I would like to make sure that I am doing it right. I found a couple of resources, but they do not look like they are specifically designed for ASP.NET MVC:

Thank!

+5
source share
1 answer

I searched the same and now I found a sample for MVC and Facebook v6.0 api on github: https://github.com/facebook-csharp-sdk/facebook-aspnet-sample

0
source

All Articles