From 39a5081509a846cf6632e40daf0bc6d7497b5a0b Mon Sep 17 00:00:00 2001 From: Miguel Sozinho Ramalho <19508417+msramalho@users.noreply.github.com> Date: Mon, 12 Apr 2021 22:35:36 +0100 Subject: [PATCH] Update Facebook.js --- src/services/Facebook.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {