URL determinado não é permitido pela configuração do aplicativo
Eu usei isso na minha página html ...
<script>
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : 'xxxxxxxxxxxxxx', // App ID from the App Dashboard
status : true, // check the login status upon init?
cookie : true, // set sessions cookies to allow your server to access the session?
xfbml : true // parse XFBML tags on this page?
});
// Additional initialization code such as adding Event Listeners goes here
};
// Load the SDK's source Asynchronously
// Note that the debug version is being actively developed and might
// contain some type checks that are overly strict.
// Please report such bugs using the bugs tool.
(function(d, debug){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all" + (debug ? "/debug" : "") + ".js";
ref.parentNode.insertBefore(js, ref);
}(document, /*debug*/ false));
function shareOnFb(action, msg){
FB.ui({
method: action,
message: msg
});
}
</script>
quando todo que eu tento chamar qualquer método FB diz isso no meu console
O URL fornecido não é permitido pela configuração do aplicativo .: um ou mais URLs fornecidos não são permitidos pelas configurações do aplicativo. Ele deve corresponder ao URL do website ou ao URL do Canvas ou o domínio deve ser um subdomínio de um dos domínios do Google Apps.
este é o meu fb app configuração .. eu preciso mudar alguma coisa aqui, estou executando o meu site localmente por enquanto, então eu tentei adicionar
localhost / OfferDrive / para o domínio do aplicativo nesta página, mas ele diz que não é um domínio válido