简体   繁体   English

Facebook Connect-使用OAuth进行身份验证,但使用FB:login-button-允许吗?

[英]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. 以前,我使用Facebook Connect的JavaScript API,所以我有fb:login-button XFBML标记,单击该标记将执行登录。

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). 但是现在,我正在使用OAuth身份验证(服务器端),但我仍然希望拥有该按钮(单击该按钮后,将直接重定向到我的服务器上执行OAuth任务的URL)。

Is this allowed? 可以吗?

Can i simply style a regular anchor/button to look like the Facebook login button ? 我可以简单地将常规锚点/按钮设置为类似于Facebook登录按钮的样式吗?

I don't want to have to include the Javascript SDK library simply to render out the button. 我不想只包含Javascript SDK库来渲染按钮。 I don't care about the code behind the button, just the UI. 我不在乎按钮后面的代码,仅在乎UI。

FYI - i'm using the Facebook C# SDK. 仅供参考-我正在使用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. 在那种情况下不需要Javascript SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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