1

with var url = window.location.href; get i my url and now i will the url variable put in the facebook share link.

<fb:share-button href="url variable here" type="button"></fb:share-button>

how can I implement that?

Hope someone can help me.

Dave
  • 2,815
  • 5
  • 19
  • 22

1 Answers1

0

Here you go!

var url = window.location.href;
$('fb\\:share-button').attr('href', url)

Hope this helps

heymega
  • 9,215
  • 8
  • 42
  • 61