Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I wrote a like button class in react to display facebook like button in my blog posts

var LikeButton = React.createClass(
{
    render : function ()
    {
        var url = "http://yahya.skaprer.com/p/" + this.props.obd;
        return (
            <div className="fb-like" data-href={url} data-layout="standard" data-action="like" data-show-faces="true" data-share="false"></div>
        );
    }
});

The button doesn't show up no matter what I do. I checked running FB in console to check whether the SDK is installed properly and yes it has. Is there any bug in my code or is this the wrong way?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.