【发布时间】:2011-02-22 00:59:23
【问题描述】:
我在使用新的 facebook like 按钮时遇到了一些问题。它显示得很好,但是由于某种原因它没有拉出页面的标题。
我有并且我正在使用 og:title,所有内容都已填写,当我查看在加载按钮时创建的 iframe 的源时,里面是空白的。我也在尝试放置 tweetmeme,并且看到的是该标题而不是元数据或普通页面标题。
我做错了什么?
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://developers.facebook.com/schema/">
<fb:like href="<?=$url?>" layout="button_count" show_faces="false" width="100" font="arial"></fb:like>
更新:完成头部
<head>
<title>Ladder 15 Gets A New Menu!</title>
<meta content="Growing up can be hard to do, especially in the Mad River family. But Ladder 15 has come into its own over the winter. With some new cocktails, wine selection, a hefty new beer list and veteran Chef David Ansill in the kitchen, you can check your fist pump at" name="Description">
<meta content="" name="Keywords">
<meta content="cities2night inc." name="author">
<meta content="Cities2Night 2010" name="copyright">
<meta content="en-us" name="language">
<meta content="General" name="rating">
<meta content="index,follow" name="robots">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="Ladder 15 gets a new menu!" name="tweetmeme-title">
<meta content="Ladder 15 gets a new menu!" property="og:title">
<meta content="article" property="og:type">
<meta content="http://philly.cities2night.com/articles/show/listing/11/ladder-15-gets-a-new-menu" property="og:url">
<meta content="http://philly.cities2night.com/public/article_images/11.jpg" property="og:image">
<meta content="c0176da0ec38aaf107c0ef6c8cdeee38" property="fb:app_id">
<meta content="Philly2night.com" property="og:site_name">
<meta content="Growing up can be hard to do, especially in the Mad River family. But Ladder" property="og:description"></head>
【问题讨论】:
-
我在你的代码中没有看到标题应该是......
标签: php javascript facebook