Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled posts vanish from Facebook the moment they should go live #64

Open
RicLeP opened this issue Oct 17, 2024 · 0 comments
Open

Scheduled posts vanish from Facebook the moment they should go live #64

RicLeP opened this issue Oct 17, 2024 · 0 comments

Comments

@RicLeP
Copy link
Contributor

RicLeP commented Oct 17, 2024

Not sure where the issue lies but when I schedule a post on Facebook I can view it in their planner, but the moment it’s meant to be published, it disappears instead of going live.

$this->scheduledPublishTime is a future date, more than 10 minutes away and less than 30 so allowed in their rules.

From my understanding scheduled posts need to have their published status as false.

public function toFacebookPoster($notifiable): FacebookPosterPost
{
    return (
        new FacebookPosterPost(
            $this->vacancy->title . "\r\n"
            . $this->vacancy->company->name . "\r\n" . "\r\n"
            . html_entity_decode(strip_tags($this->vacancy->description)) . "\r\n" . "\r\n"
            . $this->vacancy->link . "\r\n"
        )
    )->withParams([
        'scheduled_publish_time' => $this->scheduledPublishTime->unix(),
        'published' => 'false'
    ])->withLink($this->vacancy->link);
}

I’m also awaiting a callback from Facebook which may shed light on where the issue is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant