简体   繁体   中英

Facebook Connect - Using OAuth for Authentication, but with FB:login-button - Allowed?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM