2010-11-12 253 views
3

我最近有一个fb社交插件。特别是,我的网站的“赞”按钮。一切正常,只是当我点击按钮时,它会显示“您喜欢:http://www.branchout.com/index.php?id = 3”Facebook Like button

我不想说什么我喜欢的网址。我想让它说出我喜欢的内容(在这种情况下,它是一个引用)。

还有一两件事,我的域名是 “thebranchout.com”,而不是 “branchout.com”

和想法,伙计们?

代码的头是这样的:

<head> 
<title><?php echo $last; ?>) <?php echo $first; ?></title> 
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 
<meta name="description" content="Sharing stuff, quotes, politicians, athletes" /> 
<meta name="keywords" content="Sharing stuff, quotes, politicians, athletes" /> 
<meta property="og:title" content="(<?php echo $last; ?>) <?php echo $first; ?>"/> 
<meta property="og:type" content="song" /> 
<meta property="og:type" content="cause"/> 
<meta property="og:url" content="http://www.thebranchout.com/index.php?id=<?php echo $jeeves; ?>"/> 
<meta property="og:site_name" content="The BranchOut"/> 
<meta property="og:description" content="(<?php echo $last; ?>) <?php echo $first; ?>"/> 
<link rel="stylesheet" type="text/css" href="style-wampler.css" media="" /> 
<script type="text/javascript" src="JS/jquery-1.3.2.min.js"></script> 
<script src="JS/jquery.jqEasyCharCounter.min.js" type="text/javascript"></script> 
<script type="text/javascript"> 
    $(document).ready(function(){ 
     $("#slide").hide(); 

    $('.button').click(function checkPass(){ 
     $("#slide").slideDown(); 
    }); 

    $('textarea#limit').jqEasyCounter({ 
     'maxChars': 99, 
     'maxCharsWarning': 95, 
     'msgFontSize': '14px', 
     'msgFontColor': 'black', 
     'msgFontFamily': 'Verdana', 
     'msgTextAlign': 'left', 
     'msgWarningColor': 'red', 
     'msgAppendMethod': 'insertBefore'    
    }); 
}); 
</script> 

的iframe是这样的:

<iframe src="http://www.facebook.com/plugins/like.php?href=thebranchout.com/index.php?id=<?php echo $jeeves; ?>&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=lucida+grande&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe> 
+6

代码会有帮助。 – 2010-11-12 15:46:25

+0

当然。这里是: – 2010-11-12 15:51:30

回答

0

我认为Facebook解析为信息使用的页面。确保该URL中的页面在标题中有一个有效的标题集。虽然我不确定他们用于descritpion等。

5

将您的页面输入到URL Linter,它会告诉您Facebook如何抓取关于您网页的信息。

+1

不仅如此,URL Linter会更新Facebook的元数据缓存。 – ObscureRobot 2011-12-13 06:09:18