& lt; fb: login-button>在最新的Firefox中没有转换为按钮

<fb:login-button> not converted to the button in latest Firefox

本文关键字:转换 按钮 Firefox 最新 fb lt login-button      更新时间:2023-09-26

我一直在使用https://github.com/webtechnick/CakePHP-Facebook-Plugin

无论如何,html页面的输出显示fb:login-button,但它没有被转换为Firefox中实际的facebook按钮。我有facebook的html标签,fb init()在我的页面底部。它可以在IE9中工作(尚未检查其他浏览器)。

那么为什么它不被fb javascript转换?

原来是因为我在FF上登录了facebook,而不是IE。登录按钮不显示您是否已登录

您可能需要在html标记中包含适当的xml名称空间。像这样:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" lang="en">