I'm trying to integrate the Facebook page plugin for my website, but the change of API occurred on April 30 is giving me problems and i find no updated guide.
when I go to generate the code I am told:
Include the JavaScript SDK on your page once, ideally right after the opening tag.
public char[] combine(char[] bacteriaStrand, char[] cornStrand) {
char[] result = new char[bacteriaStrand.length + cornStrand.length];
if (bacteriaStrand[0] == 'A') {
for (int i = 0; i < cornStrand.length; i++) {
boolean insertedBacteria = false;
if (cornStrand[i] == 'G') {
insertedBacteria = true;
for (int j = 0; j < bacteriaStrand.length; j++) {
result[i + 1 + j] = bacteriaStrand[j];
}
if (insertedBacteria)
i += bacteriaStrand.length;
result[i] = cornStrand[i];
}
}
}
return result;
}
Place the code for your plugin wherever you want the plugin to appear on your page.
<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/it_IT/sdk.js#xfbml=1&version=v2.3";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
and I'm going to enter the code in the web page in this way
<div class="fb-page" data-href="https://www.facebook.com/pages/Grifo-
Imports/579559248856812?fref=ts" data-width="300" data-height="200"
data-hide-cover="false" data-show-facepile="true" data-show-
posts="true"><div class="fb-xfbml-parse-ignore"><blockquote
cite="https://www.facebook.com/pages/Grifo-Imports
/579559248856812?fref=ts"><a href="https://www.facebook.com/pages/Grifo-
Imports/579559248856812?fref=ts">Grifo Imports</a></blockquote></div>
</div>
but in the website does not appear the Page Plugin. Where am I doing wrong ???
Thanks to those who will respond... and sorry for my imperfect english! ;)