After implementing DotNetOpenAuth in my ASP.Net Website and adapting it to work with Facebook Connect, I am facing a challenge. I have inserted a Facebook Connect button on my login page, but I am struggling to retrieve information from the connection and pass it into an authentication method.
To tackle this issue, I currently follow these steps:
- Execute a Javascript function when the FBML/HTML Facebook Connect button is clicked.
- The JavaScript function triggers a web service for logging in successfully.
- The web service interacts with my data access layer for login operations.
- However, the problem arises here - FormsAuthentication.SetAuthCookie is established at the data access layer level, which means that the cookie is not set in the user's browser due to its scope limitation.
Consequently, although the user is authenticated, their browser remains uninformed.
I am seeking advice on whether my current approach is flawed or if there exists a more effective way to achieve my goals. I have been exploring solutions for hours but haven't found a definitive answer yet. Any support or guidance you can offer would be highly appreciated.