我最近创建了一个Facebook应用程序,用于将域名的网页与facebook进行整合。Facebook管理链接丢失
但我不明白为什么管理链接不会显示在网页上,而作为管理员登录到FB。
阅读开发者文档可能有点混乱,因为似乎有各种方法来实现每个网页上所需的代码。很难确定哪个名称空间与加载SDK的方式以及哪种标记方法匹配。
我试图为HTML5做到这一点。
<!DOCTYPE HTML>
<!-- Whilst I have found many html namespace modifications for XFBML methods I did not see any requirements for html5 an d the following method -->
<html>
<!-- The head og namespace is taken from the fb developers app > open graph > object types > get code link -->
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# video: http://ogp.me/ns/video#">
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- The meta properties are also taken from the fb developers app > open graph > object types > get code link -->
<meta property="fb:app_id" content="APP ID NUMBER"/>
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="http://www.domain.com/page.html"/>
<meta property="og:title" content="TITLE"/>
<meta property="og:description" content="DESCRIPTION."/>
<meta property="og:image" content="http://www.domain.com/og_thumb.jpg" />
<!-- The meta property here was not included with the above but is required according to https://developers.facebook.com/docs/reference/plugins/like/ -->
<meta property="og:site_name" content="SITE NAME" />
</head>
<body>
<!-- The following is the code given when using the "like" code generator from this page https://developers.facebook.com/docs/reference/plugins/like/ and selecting the "HTML5" option -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=APP ID NUMBER";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="http://www.domain.com/page.html" data-send="true" data-layout="button_count" data-width="0" data-show-faces="false" data-font="arial"></div>
</body>
</html>
虽然登录的FB应用我能够通过查找页面名称/ ID访问管理的页面,并添加他们到URL,像这样的管理员用户: http://www.facebook.com/pages/TITLE-OF-PAGE/GRAPH-ID-NUMBER
我注意到这个错误,似乎相关: https://developers.facebook.com/bugs/178579068908181/
我了解使用FB时:管理员都admin必须“喜欢”能够看到管理员链接之前的页面。
但是我假设在使用fb:app_id时,应该不需要“喜欢”页面。
我缺少什么来启用网页的管理链接?
对不起,迟到的回应。我已经用fb进行了测试:管理员也通过调试器运行,但仍然没有喜悦。这是一个可重现的错误:https://developers.facebook.com/bugs/312068448887757?browse=search_5031bc5d092e70230154166这是给予“低”优先级 – timoto 2012-08-20 04:29:06