Question

Previously i used the JavaScript API for Facebook Connect, so i had the fb:login-button XFBML tag, which when clicked would perform the login.

But now, i'm using OAuth authentication (server-side), but i still wish to have the button (which when clicked, would simply redirect to the URL on my server which does the OAuth stuff).

Is this allowed?

Can i simply style a regular anchor/button to look like the Facebook login button?

I don't want to have to include the Javascript SDK library simply to render out the button. I don't care about the code behind the button, just the UI.

FYI - i'm using the Facebook C# SDK.

Was it helpful?

Solution

Yes, what you are doing is allowed. I would suggest taking a look at the tutorial I posted which does almost exactly what you are talking about. You can find that tutorial here. No need for the Javascript SDK for that scenario.

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