Jenka1980
Jenka1980

Reputation: 113

Why HTML5 syntax social plugins won't render if on FB.init xfbml property set to false?

I have some HTML5 code to embed facebook social plugins.

<div class="fb-share-button" data-href="some URL" data-type="button_count"></div>

When calling FB.init method of facebook JavaScript SDK with xfbml set to false thous plugins won't render.

FB.init({
      appId      : '{your-app-id}',
      status     : true,
      xfbml      : false
    });

I can't understand why is it happens as I'm not using the XFBML notation.

Upvotes: 0

Views: 372

Answers (1)

Siva Tumma
Siva Tumma

Reputation: 1701

The first glance hints you should include a version number. I use version: 'v2.1'. Also, I am getting a doubt that you didn't include {your_app_id} with your real app_id...

Upvotes: -1

Related Questions