[英]Facebook Feed, post two pictures in wall. Javascript SDK
Hello im trying to post two pictures to my wall with javascript sdk. 您好,我试图用javascript SDK将两张图片发布到我的墙上。
I want to do something like this: 我想做这样的事情:
I know how to post to my wall, using: " FB.api('/me/feed', 'post " method, but this allow me only to upload one picture. How can i upload two ? 我知道如何使用以下方法将照片张贴到墙上:FB.api('/ me / feed','post“方法,但这只允许我上传一张照片。如何上传两张照片?
Thanks 谢谢
You can simply loop through the photos and post them. 您可以简单地浏览照片并将其发布。
I guess Facebook will automatically group them together if they belong to the same album. 我想如果它们属于同一张专辑,Facebook会自动将它们分组在一起。
for(var i=0; i<picture.length; i++){
....
params['picture'] = picture1;
....
FB.api( ... );
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.