Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.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
Html 在facebook上共享网页内容的最佳方式是什么?_Html_Facebook_Facebook Sharer - Fatal编程技术网

Html 在facebook上共享网页内容的最佳方式是什么?

Html 在facebook上共享网页内容的最佳方式是什么?,html,facebook,facebook-sharer,Html,Facebook,Facebook Sharer,我正在考虑只剪切网站的某些部分。像 <div id = ""> <div> <p>ABC</p> </div> </div> ABC 我可以分享整个页面,但我不想分享整个页面。我的共享按钮代码如下 <div class="fb-share-button" data-href="http://stackoverflow.com/users/111

我正在考虑只剪切网站的某些部分。像

<div id = "">
   <div>
      <p>ABC</p>
  </div>
</div>

ABC

我可以分享整个页面,但我不想分享整个页面。我的共享按钮代码如下

<div class="fb-share-button"
                        data-href="http://stackoverflow.com/users/111111111/myname"
                        data-layout="button_count" data-size="small"
                        data-mobile-iframe="true">
                        <a class="fb-xfbml-parse-ignore" target="_blank"
                            href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Flocalhost%3A8080%2Fsocial%2Fwelcome&amp;src=sdkpreparse">Share</a>
                    </div>

是否有更好的方法只共享部分web站点?
谢谢。

uhhh,当你在Facebook上共享网站时,它实际上会共享URL,因此从技术上讲,你不能只共享页面本身的一个子集。除非你有办法对内容进行子集设置并在另一个URL上显示。@Terry,谢谢,如果有可能使URL成为div内容,那好吧