问题描述
我有一个使用Facebook的按钮的网站。我正在尝试将管理链接显示在页面上,以便我可以将内容推送给喜欢该页面的人。
我的页面的HTML命名空间如下:
< html lang =enxmlns = http://www.w3.org/1999/xhtmlxmlns:og =http://ogp.me/ns#>
我的元标记如下所示:
< link rev =canonicalhref =http://mysite.com/welcome//>
< meta property =og:localecontent =en_US/>
< meta property =og:site_namecontent =MySite/>
< meta property =fb:app_idcontent =012345678910/>
< meta property =og:titlecontent =我的网页名称/>
< meta property =og:descriptioncontent =此处说明/>
< meta property =og:typecontent =website/>
< meta property =og:urlcontent =http://mysite.com/welcome//>
< meta property =og:imagecontent =http://mysite.com/path/to/image.jpg/>
我已经使用,它通过没有任何警告或错误。我是该应用的管理员。
我做错了什么?
注意:我还试图将< meta property =fb:adminscontent =01234567/>
没有用。我也尝试过不同的 xmlns
标签,甚至没有任何 xmlns
标签。
似乎问题源自于< html>
元素
我有一个定制的 xmlns
标签发送喜欢错误的图形(我相信.. 。)
目前正在使用的标签是:
< html xmlns =http://www.w3.org/1999/xhtmlxmlns:og =http://ogp.me/ns#xmlns:fb =https://www.facebook.com / 2008 / FBML>
此更改后,喜欢某个页面将显示管理链接。
感谢您的回复!
I have a website that uses the Facebook like button.
I am attempting to get the "Administration" link to show up on the page so that I can push content to people who like the page.
My page's HTML namespace is like:
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#">
My meta tags are like so:
<link rev="canonical" href="http://mysite.com/welcome/" />
<meta property="og:locale" content="en_US" />
<meta property="og:site_name" content="MySite" />
<meta property="fb:app_id" content="012345678910" />
<meta property="og:title" content="Name of my page" />
<meta property="og:description" content="Description here..." />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://mysite.com/welcome/" />
<meta property="og:image" content="http://mysite.com/path/to/image.jpg" />
I have checked the page with the Facebook debugging linter and it passes without any warnings or errors. I am an admin of the app.
What am I doing wrong?
Note: I've also tried to put the <meta property="fb:admins" content="01234567" />
in to no avail. I've also tried different xmlns
tags and even without any xmlns
tags.
It appeared that the problem stemmed from having the wrong xmlns tags in the <html>
element.
I had a custom xmlns
tag that was sending likes to the wrong graph (I believe...).
The current tags that are working are:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml">
After this change, liking a page would show up the Administration link.
Thanks for the responses!
这篇关于否“管理页面”在Facebook上链接喜欢按钮在网页上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!