2011-11-04 99 views
0

我試圖打開一個發送用戶界面對話框鏈接到一個圖形API的照片對象的鏈接屬性,但是我收到以下錯誤:通過UI發送照片發送對話框

property values must be strings or objects with a 'text' and a 'href' attribute

的JavaScript代碼我「M採用如下:

FB.ui({ 
    method: "send", 
    display: "popup", 
    link: photo.link 
}); 

它的工作原理,如果我設置的名稱參數,但它不包括來自鏈接頁面的圖像或描述。如果我嘗試包括照片的圖像,我收到以下錯誤:

FBCDN image is not allowed in stream

是否有共享使用發送對話框上傳到Facebook的照片,任何理智的方法是什麼?

回答

1

這看起來是Facebook的限制。

this post

Serving Images in Stream Stories

Jun 18, 2010 3:21pm

We no longer allow stream stories to contain images that are hosted on the fbcdn.net domain. The images associated with these URLs aren't always optimized for stream stories and occasionally resulted in errors, leading to a poor user experience. Make sure your stream attachments don't reference images with this domain. You should host the images locally.