从前两天开始,我的 Facebook 应用程序显示了一些奇怪的文字,例如在我的应用程序的使用故事提要中:
此故事无效,因为:http://apps.facebook.com/socialrecruit/上的对象没有标题
是什么原因?
从前两天开始,我的 Facebook 应用程序显示了一些奇怪的文字,例如在我的应用程序的使用故事提要中:
此故事无效,因为:http://apps.facebook.com/socialrecruit/上的对象没有标题
是什么原因?
我有同样的问题。我通过删除我的 HTML 文件上的一个额外标签来解决它。额外的标签是:
<?xml version="1.0" encoding="utf-8" ?>
我现在拥有的 HTML 标头是:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
这对我有用,错误消失了。
我有解决办法。将 head 标签更改为
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#">
并添加以下元标记。
<meta property="og:type" content="other">
<meta property="og:title" content="Social Recruit">
<meta property="og:url" content="https://apps.facebook.com/socialrecruit/">
<meta property="og:image" content="http://thesocialrecruit.com/fb/images/main_app_image.png">
<meta property="og:site_name" content="Social Recruit">
<meta property="fb:app_id" content="APP_ID">
您可能需要等待几个小时才能进行更改。
对我来说,只需在该head
部分添加标题标签即可解决问题:
<head>
...
<title>
My App Title
</title>
...
</head>
就是这样......我希望这会有所帮助。