I just had to do this. Absolutely every question I looked up questions regarding this issue but none of their answers helped me solve it.
I am trying to post on my Facebook page.
Here is the issue:
Error: "(#100) You cannot specify a scheduled publish time on a published post"
Code:
FB.api(
"/100177680105780/feed",
"POST",
{
"message": "This is a test message",
"scheduled_publish_time": Math.round(new Date().getTime() / 1000) + 120
},
function (response) {
console.log(response);
if (response && !response.error) {
/* handle the result */
}
});
I have no idea why this is giving me this error. It doesn't work even if I add the "object":{} around the content of the post. I tried changing the UNIX time stamp, I tried changing the message, I tried setting "published": false and no luck.
Any guidance would be amazing.