Facebook分享按钮数据-href Wordpress永久链接显示:“facebook.com/v2.0 ...”

This is how I render my button:

function fb_share() {
    $permalink = get_permalink();
    echo '<div class="fb-share-button" data-href="'.$permalink.'" data-layout="button_count"></div>';
}

I include the scripts right after tag opens. However, what it does when you click share is:

Facebook screenshot

Any thoughts?

查看全部
dongtuoao7987
dongtuoao7987
2014/11/11 12:21
  • wordpress
  • facebook
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复