carrot / share-button

:warning: :warning: Currently Unmaintained :warning: :warning: - fast, beautiful, and painless social shares:
http://sharebutton.co/
Other
2.95k stars 381 forks source link

Facebook options description not working #296

Closed wraithseeker closed 8 years ago

wraithseeker commented 8 years ago

Details

I am editing facebook's description displayed by share-button but when I click share by facebook, I am not getting the string value that I inputted under description.

$(function() {
        var options = {
            ui: {
                flyout: "bottom right"
             },
            networks: {
                facebook: {
                    description: "<%= @news_description %>"

                }
            }
        }
        var shareButton = new ShareButton('.share-button',options);
    });
wraithseeker commented 8 years ago

I read through the facebook docs https://developers.facebook.com/docs/sharing/webmasters/crawler and I managed to solve this problem through another way by providing the og:description and og:title tags in my header which are dynamically added to the page.

hhsnopek commented 8 years ago

:+1: glad you solved the problem!