Note that there are some explanatory texts on larger screens.

plurals
  1. POModify or Replace the Facebook like button flyout box
    primarykey
    data
    text
    <p>I have a project with a client strongly preferring the Facebook 'Share' button over the 'like' button. I need to slightly modify 'like' to convince them to use it. I am well aware that the 'Share' button is deprecated (and has problems because of it), but they've been quite insistent. </p> <p>Something they seem to prefer, apart from the button's verbage, is the 'share' button popup window that also allows the user to change the default text (provided by Facebook's open graph tags, i.e. og:description, etc.) by clicking on it.</p> <p>Maybe they can be moved to use the 'like' button if it can function somewhat more like 'share'. Is it possible to somehow get that 'like' button flyout dialog (that appears when you click the button and has the og:title, og:image, og:description, etc. tags) to appear in a popup window? Preferably with the ability for the user to change that text by clicking it, as the 'share' popup allows? </p> <p>They also want the counter, otherwise I'd just use css with my anchor tag below.</p> <p>I've tried the following, but with no luck on the 'like' button. Google will be replaced with my site and its own og tags:</p> <pre><code> &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml"&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;div id="fb-root"&gt;&lt;/div&gt; &lt;script&gt; function share() { FB.ui({ method: 'stream.share', u: 'www.google.com', }); }; (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 = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); &lt;/script&gt; &lt;fb:like id="fbLike" href="www.google.com" onclick="share();" send="false" layout="box_count" show_faces="false" &gt;&lt;/fb:like&gt; &lt;a href="#/" onclick="share();"&gt;Can I get the like button to work like this?&lt;/a&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    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