简体   繁体   中英

Facebook Feed, post two pictures in wall. Javascript SDK

Hello im trying to post two pictures to my wall with 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 ?

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.

for(var i=0; i<picture.length; i++){
    ....
    params['picture'] = picture1;
    ....
    FB.api( ... );
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM