title: How to Share my URL to the social media?
body: <p>I have created URL something like: <a href="http://example.com/namespace/page#img-3" rel="nofollow noreferrer">http://example.com/namespace/page#img-3</a></p>
  
  <p>I want to share my URL same as given above. But, when I share this URL to the social media it is sharing only page URL: <a href="http://example.com/namespace/page" rel="nofollow noreferrer">http://example.com/namespace/page</a></p>
  
  <p>without <code>#img-3</code></p>
  
  <p><strong>#img-3 is the element id which I want to share from the page and pass it into the anchor tag to add in the URL</strong></p>
  
  <pre><code>   &lt;a href="#img-&lt;?php echo $video-&gt;getId(); ?&gt;"&gt;
          &lt;img src="https://img.youtube.com/vi/&lt;?php echo $video-&gt;getVideoUrl() ?&gt;/0.jpg"/&gt;
     &lt;/a&gt;
  </code></pre>
  
  <p>I am using below FB share code:</p>
  
  <pre><code>&lt;script&gt;(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.11&amp;appId=1336483029802737';
    fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
  
  &lt;div class="fb-like" data-href="&lt;?php echo $baseURL_l.'video#img-'.$video-&gt;getId()?&gt;" data-layout="button_count" data-action="like" data-size="small" data-show-faces="true" data-share="true"&gt;&lt;/div&gt;
  </code></pre>