You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I want to upload a picture to an album. Here is my code:
FB.api(folderId + '/photos', 'post', {"source": fs.createReadStream(filePath)}, function (res) {
if(!res || res.error) {
console.log(!res ? 'error occurred' : res.error);
return;
}
console.log('Post Id: ' + res.id);
});
In this case I get the error from facebook: (#324) Requires upload file.
The text was updated successfully, but these errors were encountered:
Hello, I want to upload a picture to an album. Here is my code:
FB.api(folderId + '/photos', 'post', {"source": fs.createReadStream(filePath)}, function (res) {
if(!res || res.error) {
console.log(!res ? 'error occurred' : res.error);
return;
}
console.log('Post Id: ' + res.id);
});
In this case I get the error from facebook: (#324) Requires upload file.
The text was updated successfully, but these errors were encountered: