1

有没有相同的问题?Facebook保存按钮:发布失败(404)

我的例子来自https://developers.facebook.com/docs/plugins/save?locale=en_US

按下“保存键式”我得到了来自Facebook成功的消息,但加入后一无所获。控制台显示以下错误。

的错误:

POST: Failed to load resource: the server responded with a status of 404() 
https://www.facebook.com/plugins/save/sentry/?dpr=1 

代码:

<html> 
<head> 
    <title>Your Website Title</title> 
    <meta property="og:url"   content="https://www.instagram.com/facebook/" /> 
    <meta property="og:type"   content="website" /> 
    <meta property="og:title"   content="Your Website Title" /> 

    <style> 
    .fb-save, span, iframe { 
    width: 200px !important; 
    height: 50px !important; 
    } 
    </style> 
</head> 
<body> 

<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/de_DE/sdk.js#xfbml=1&version=v2.6"; 
    fjs.parentNode.insertBefore(js, fjs); 
}(document, 'script', 'facebook-jssdk'));</script> 

<div class="fb-save" data-uri="https://www.instagram.com/facebook/" data-size="large"></div> 

</body> 
</html> 
+0

没有IDEAR? :(问题仍然存在.. – kaito

回答

2

好吧,我发现这个问题!我错过了在App-ID ....

js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=12345679"; 

window.fbAsyncInit = function() { 
    FB.init({ 
    appId  : 'your-app-id', 
    xfbml  : true, 
    version : 'v2.5' 
    }); 
};