I’ve seen a lot of documentation about integration between ASP .NET web sites and Facebook, but I haven’t found a simple working example, even using Facebook C# SDK.
All I want is a “login with Facebook” example, and to get basic user information (such as name, email and photo).
Can you guys help me please?
Thanks a lot!
as you say
using Facebook C# SDK, then here is path and some code for canvas application:1- Create your web application from visual studio
2- install nuget and get by nuget
Facebook C# SDK3- from
https://developers.facebook.com/apps/create and configure your app.4- Your web config for facebook integration :
By using sdk, you can parse signed request or cookie written by facebook js sdk
Here you can have friend count by:
For the client side:
For login & asking permission from
javascriptI prefer in my project to client side login thus not yet registered user have landing page, if for example submit form then I call code block above.
Note: you have to set P3P header for Internet explorer to read/write cookie depending of your server. for IIS,
global.asax:Volià