Facebook登录按钮与OAuth对话框 [英] Facebook Login Button Vs. OAuth Dialog

查看:120
本文介绍了Facebook登录按钮与OAuth对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么更好的吗?

  1. 登录按钮

OAuth对话框

我喜欢登录按钮,因为它显示了已经注册了您的应用程序的用户朋友的个人资料照片,并且它打开了一个对话框覆盖,而不是像OAuth对话框一样重定向到了新页面.

I like the Login Button because it shows profile pictures of the user's friends who have already signed up for your application and it opens a dialog overlay instead redirecting to a new page as does the OAuth Dialog.

但是,我认为OAuth对话框较新.我们应该使用哪个?

But, I think the OAuth Dialog is newer. Which should we use?

此外,登录按钮是XFBML.显然, Facebook正在弃用FBML .这是否也意味着XFBML也将被弃用?

Also, the Login Button is XFBML. Apparently, Facebook is in the process of deprecating FBML. Does that mean XFBML is being deprecated too?

推荐答案

这不是一个比另一个更好的-它们旨在完成不同的事情.

It isn't that one is better than the other - they are intended to accomplish different things.

登录按钮用于外部网站,以允许该网站内基于Facebook的社交元素和社区.然后,您可以添加其他插件,例如评论

The login button is used for external websites to allow Facebook-based social elements and community within that site. You can then add other plugins such as comments, the like button or the face pile to further integrate the Facebook social networking aspects, with the login button acting as the authentication mechanism.

OAuth对话框专门用于在Facebook画布中运行的FB应用程序,并允许您向用户请求Graph API权限,这将使您可以访问其个人资料的各个部分以及其他交流渠道.

The OAuth dialog is specifically for FB apps that run within the Facebook canvas, and allows you to request Graph API permissions from a user which will grant you access to various parts of their profile and additional channels of communication.

尽管Facebook将弃用FBML,但它们不包括支持社交插件(例如登录按钮)的XFBML元素.有关更多信息,请参见此处.

While Facebook is deprecating FBML, they are not including XFBML elements that support social plugins, such as the login button. See here for more info.

这篇关于Facebook登录按钮与OAuth对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆