문제

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 ?

도움이 되었습니까?

해결책

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

다른 팁

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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top