html - How to customize/style Facebook share Button -


i search , tried ways make own style facebook share button (this button allows share current page)

https://developers.facebook.com/docs/plugins/share-button/

since button iframe couldn't access , style , understand . don't know how websites have share button different styles ??

<!doctype html>  <html>  <head>    <title>your website title</title>      <!-- can use open graph tags customize link previews.      learn more: https://developers.facebook.com/docs/sharing/webmasters -->    <meta property="og:url"           content="http://www.your-domain.com/your-page.html" />    <meta property="og:type"          content="website" />    <meta property="og:title"         content="your website title" />    <meta property="og:description"   content="your description" />    <meta property="og:image"         content="http://www.your-domain.com/path/image.jpg" />  </head>  <body>    <!-- load facebook sdk javascript -->    <div id="fb-root"></div>    <script>(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/sdk.js#xfbml=1";      fjs.parentnode.insertbefore(js, fjs);    }(document, 'script', 'facebook-jssdk'));</script>      <!-- share button code -->    <div class="fb-share-button"       data-href="http://www.your-domain.com/your-page.html"       data-layout="button_count">    </div>  </body>  </html>

a lot of sites have own implementations of social share buttons, not calling facebook api. that's how customise it.

for example, take @ arcticle on next web.

also, duplicate of this talks how work have done implement open-graph api custom share/like buttons.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -