I am adding fb shared button in application using the docs at Share Button. Its working fine, but I want to share the current page's URL in facebook. For example:
<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-type="button"></div>
I want to fill my current URL href
section, how can i achieve this
http://localhost:3000/news/view/2
This is my URL, here id changing each time, instead of developers.facebook.com
how can I add my URL id here.