Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 主页上的问题和评论_Php_Facebook - Fatal编程技术网

Php 主页上的问题和评论

Php 主页上的问题和评论,php,facebook,Php,Facebook,我是编程新手,我需要你的帮助 我一直很难换衣服 <?php comments_number(__('No Comments', 'engine'), __('1 Comment', 'engine'), __('% Comments', 'engine')); ?> 添加到一行,该行识别fb用户的评论总数,并在主页上将其正确输入为元评论 我已经能够在single.php中使用 <span class="meta-comments"><fb:comments-c

我是编程新手,我需要你的帮助

我一直很难换衣服

<?php comments_number(__('No Comments', 'engine'), __('1 Comment', 'engine'), __('% Comments', 'engine')); ?>

添加到一行,该行识别fb用户的评论总数,并在主页上将其正确输入为元评论

我已经能够在single.php中使用

<span class="meta-comments"><fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count> Comments</span>

您能详细介绍一下您在尝试时得到的输出吗?当然,当在index.php中输入与我在single.php中输入相同的行时,它会显示“注释”,但无法识别计数。我已将该代码输入index.php供您查看。您能否向我们展示
comments\u number()
函数?我看不到任何地方的第一行代码是有效的。你用什么连接到PHP/Wordpress中的facebook API?这是我的comments.PHP connect.facebook.net/en_US/all.js#xfml=1“>