authentication - Facebook C# sdk - simple Login - Where to start? -


i hope can me. think, solve problem easy, not able find tutorial me.

i have .net web application, not mvc. application written in c#, framework 3.5, , uses sql 2008 db. has login-functionality. try first steps facebook c# sdk.

my first target allow users login facebook account. should not canvas page. think should easy. should other method login application. want button near 'old' login button allows "login facebook account"

i think in background, after successful facebook-login, have map facebook-userid db-user-id , should done. strategy ok? did forgot something?

now not sure how start. think prerequirements ok now, not understand setps have do.

the facebook sdk has lot of classes. right 1 me?

i have in click-event:

    string appid = "xxx";      string[] extendedpermissions = new[] { "user_about_me", "offline_access" };      if (components.securitymanager.active.dologinoverfacebook(appid, extendedpermissions)) { // code here  } 

but right lines of code "components.securitymanager.active.dologinoverfacebook()"? @ time empty. dont know how start.

can please me. tried on nights cant figure out start...

thank you

i highly recommend read these articles on authentication first general idea.

for facebook c# sdk v6+ - http://blog.prabir.me/post/facebook-csharp-sdk-writing-your-first-facebook-application-v6.aspx

for facebook c# sdk v5: - http://blog.prabir.me/post/facebook-csharp-sdk-writing-your-first-facebook-application.aspx download source code , check in "samples" folder. have bunch of samples there on different scenarios on how authentication.

(if website make sure run samples in either iis or iis express)


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -