【发布时间】:2012-12-11 15:20:12
【问题描述】:
//var imgURL="http://xxxx.xxx:8084/xxx/largedynamicimagethattakestime
FB.api(
'/me/photos',
'post',
{
message:' coffee',
url: imgURL
},
function(response) {
if (!response || response.error) {
alert('Error occured'+response.error);
}
else {
//...........
}
}
);
我只想在var imgURL 完成加载时启动这个fb.api 调用。
有什么方法可以让我在div 中加载此图像并仅在图像完全加载时调用fb.api?
也欢迎提供带有图片的按钮来发布这些图片。
【问题讨论】:
标签: javascript jquery html ajax facebook-javascript-sdk