Question

I know that web services are used to call a method of other application which returns the results to the form application in asp.net. But if I am using the "login with FB" method then how does the FB web service interact with the interface of my web application ?

Was it helpful?

Solution

If you are using FBJS, and last time I checked this was the preferred way of doing it, there is no direct interaction. After someone completes the FB login process, you will have access to a FB cookie. Then, on the server with C#, you will need to manually look for that cookie and do something with it, such as create your own authentication token using FormsAuthentication.SetAuthCookie

OTHER TIPS

It depends on how you implement it, you can use javascript in which case it is all done client side or you could use something like:

using ASPSnippets.FaceBookAPI;

Which would allow you to use server controls and their click event to log into facebook. Does this help?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top