diff --git a/src/services/Facebook.js b/src/services/Facebook.js index db1330d..d592a51 100644 --- a/src/services/Facebook.js +++ b/src/services/Facebook.js @@ -23,10 +23,10 @@ const postMessageFacebook = (post, reference) => { const clientToUse = loadAccountFromReference(reference); const fb = FB.withAccessToken(clientToUse.keys.access_token); fb.api( - `/${clientToUse.pageName}/feed`, + `/${clientToUse.pageName}/photos`, 'POST', { - "message": post.message, - 'link': filePath + "caption": post.message, + 'url': filePath }, (res) => { if (res.error) {