Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I add "via my company name", company logo, and a link to my website to a Facebook share using AddThis buttons and Javascript
    primarykey
    data
    text
    <p>How do I add "via my company name", company logo, and a link to my website to a Facebook share using AddThis buttons and Javascript</p> <p>I have a Ruby on Rails web application, and the user interface uses Javascript. Currently, I have working AddThis share buttons. The way my website works is, a user is presented an article from the internet and has the option to share it using the share buttons. The addthis:url is dynamically changed using the Javascript code <code>addthis.update( 'share', 'url', url )</code>, where url is the article's url.</p> <p>I went through some AddThis documentation, and found this:</p> <p><a href="https://www.addthis.com/help/url-and-title#.T0mk3XMmP6c" rel="nofollow">https://www.addthis.com/help/url-and-title#.T0mk3XMmP6c</a></p> <p>When I click on the Facebook share for any of the share buttons on that page, here is a screenshot:</p> <p><a href="http://imgur.com/d3oIC" rel="nofollow">http://imgur.com/d3oIC</a></p> <p>Here is how it looks like on my Facebook page:</p> <p><a href="http://imgur.com/28GP4" rel="nofollow">http://imgur.com/28GP4</a></p> <p>If I could just replace AddThis Sharing with my website's name and link, and keep the article data just like it is in the picture (obviously with the url, title, and description that I provide) that would be ideal. Does anyone know how AddThis was able to do that? Was it using Open Graph tags?</p> <p>I was unable to copy/paste the code on that page and achieve the same result, as it only used the addthis:url, not the title or description. Here is what that looks like:</p> <p><a href="http://imgur.com/MMN7C" rel="nofollow">http://imgur.com/MMN7C</a></p> <p>There must be something that is not obvious that would allow me to post the way I want to, and I know it is possible, since the AddThis website can do it.</p> <p>I am not sure if I can use Open Graph tags. The articles on my website are not static urls, so Facebook can't visit a specific page to grab the information it needs. The articles are loaded into the browser with Javascript, so the next one instantly comes up after rating one.</p> <p>Based on how my website works, and what I need to have working, does anyone think they can help me out? Also, it would be good to know if what I am asking for is absolutely not possible.</p> <pre><code>//If anyone can suggest another tool like AddThis which would work better for the needs and constraints I have, that would be greatly appreciated. </code></pre> <p>I now have Twitter, LinkedIn and email buttons working the way I want, and now all that is left is Facebook. I would really like the Facebook button to work with AddThis.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload