# I need the javascript code for social media share popup windows

**URL:** <https://forum.kirupa.com/t/i-need-the-javascript-code-for-social-media-share-popup-windows/601910>\
**Category:** web dev\
**Created:** [April 2, 2015, 8:01pm UTC](https://forum.kirupa.com/t/i-need-the-javascript-code-for-social-media-share-popup-windows/601910 "2015-04-02T20:01:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles442](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@Charles442](https://forum.kirupa.com/u/Charles442)\
**Post date:** [April 2, 2015, 8:01pm UTC](https://forum.kirupa.com/t/i-need-the-javascript-code-for-social-media-share-popup-windows/601910/1 "2015-04-02T20:01:58Z")

</div>

I need to create social icon popup windows for Facebook, Twitter and  
Linkedin where I can explicity alter as much text and image content for  
each as possible

Specifically, I need the ability to find where to edit each of these for all 3 links:

popup window - in the widow:Title Text : Image:Copy Text with an embeded link back to my site

Thanks  
Charles

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [April 5, 2015, 4:25am UTC](https://forum.kirupa.com/t/i-need-the-javascript-code-for-social-media-share-popup-windows/601910/2 "2015-04-05T04:25:06Z")

</div>

In general, I suggest you try [addthis.com](http://addthis.com) that takes care of a lot of this for you. Are you looking for something different?

---

<div class="post-metadata">

**Author:** ![Charles442](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@Charles442](https://forum.kirupa.com/u/Charles442)\
**Post date:** [April 20, 2015, 7:44pm UTC](https://forum.kirupa.com/t/i-need-the-javascript-code-for-social-media-share-popup-windows/601910/3 "2015-04-20T19:44:31Z")

</div>

Thanks. The problem was that my company was working with a client who didn’t want any third party solutions like addthis or sharethis - so I needed the custom code to add each share button. It was not too hard to find posted code for twitter and linkedin but facebook was a nightmare. I was saved by this page [https://developers.facebook.com/docs/plugins/share-button](https://developers.facebook.com/docs/plugins/share-button) and especially the code debugger that will show errors in your setup [https://developers.facebook.com/tools/debug/og/object/](https://developers.facebook.com/tools/debug/og/object/) - a key thing is that you have to create a separate installation for every page since fb assumes you are sharing ‘this’ page and gives you the code only for the page you are on.
