Sto utilizzando jQuery per creare pulsanti "Mi Piace" di Facebook dinamici. Tuttavia sto ricevendo un errore che si sta ripetendo continuamente.Errore pulsante Facebook like - frame bloccato
mio jQuery per creare il pulsante è:
$('#fbLike').html('<fb:like href="'+url+'" send="false" layout="button_count" width="80" show_faces="true" />');
FB.XFBML.parse(document.getElementById('fbLike'));
Tuttavia, sto ottenendo il seguente errore:
Blocked a frame with origin "https://www.facebook.com" from accessing
a frame with origin "http://localhost:8888". The frame requesting
access has a protocol of "https", the frame being accessed has a
protocol of "http". Protocols must match.
Tutte le idee?
Modifica
(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/all.js#xfbml=1"; fjs.parentNode .insertBefore (js, fjs); } (documento, 'script', 'facebook-jssdk'));
non utilizzare https se si utilizza http – happy
Come faccio a non https utente durante la connessione a Facebook? Modificherò quanto sopra per mostrare tutto il mio codice relativo a Facebook. – Ian
Configura il tuo server locale per l'esecuzione come https: // localhost ... ecc. – ronnyfm