2013-06-22 69 views
0

的問題都可以在這裏 http://antipinagroup.com/collections/sac-de-voyageFacebook的每股2個彈出窗口

觀看了通過FB的應用程序界面加載兩個彈出式廣告分享 - 飼料對話和空白頁。 無法解決問題。任何想法爲什麼會發生,以及如何解決它?

形成

objFB = { 
method: 'feed', 
link: document.location.href, 
picture: fullPathImage + numimg +".jpg", 
name: dataBl.title, 
caption: dataBl.title, 
description: dataBl['text description']}; 

_share = _share.replace(/href="javascript:;"/g, 'onclick="postToFeed(); return false;"');     
    $("." + mainBlockClass + " #overlay_" + mainBlockClass).html(_share); 
    break;}}); 

    (function(d){FB.init({appId: "151107748411463", status: true, cookie: true});}(document)); 
    function postToFeed() { function callback(response) { /*console.log(response);*/ }FB.ui(objFB, callback);} 

回答

0

所有當我想你的FB分享,我得到的是

An error occurred. Please try again later. 

API Error Code: 1 
API Error Description: An unknown error occurred 
Error Message: kError 1349040: Invalid App ID: The provided app ID is invalid. 

我加你&show_error=true at the end of the feed dialog URL創建頁面,你可以看到,這是永遠的代碼(好的,大部分時間都是這樣)有助於使用FB對話框查找錯誤。

因此,首先在您的代碼中檢查您的應用程序ID。

+0

謝謝,CBroe。 奇怪。 App ID是正確的。增加了redirect_uri。現在它可以工作。 很傷心,但我之前認爲空白頁是由於錯過了redirect_uri而形成的,但事實並非如此。 –