Wordpress + Facebook Pages repost

I have the following scenario:
Facebook-Page-1 (FB1)
Wordpress-Site-1 (WP1)
Facebook-Page-2 (FB2)
Wordpress-Site-2(WP2)

Our company needs to add an automation to copy the posts from the old facebook page and wordpress site to the new ones, till the old ones are obsolete. I have access (admin) on all accounts.

This is what I want to achieve:
1.) Post is published in FB1 with a link to the full post to WP1
2.) Copy post from FB1 (along with the link to WP1) to FB2
3.) open the link, copy the post from WP1 and create the same post in WP2
4) add/edit the link in the copied FB2 post (which points to the post to WP1)
to point to the newly created post in WP2.

I already managed create a scenario to repost the post from FB1 to FB2, but I am not sure how to do the same in Wordpress.
Since I am new to this platform, could someone please tell me what would be the best way to proceed.

Thanks in advance

Hello @Thomas_Sandberg, what have you since succeeded with regarding WordPress access by plugin, module, or API?

Hello @ImMichaelCannon, Currently I only implemented the scenario regarding reposting posts from Facebook. I am not very familiar with WordPress, so I wanted to ask here first, what the best approach would be.

I suppose the best and more reliable approach would be using the API, but I am not sure.
I think this is a pretty common use case, so I’m guessing someone here has dealt with it before and can share the best way to handle it.

Hi @Thomas_Sandberg,

For the stuff I’m not sure about, I’ll do my best to just get started.

Conceptually for your need, it’s a case of cycling through old data and copying to the new system.

So for my automation scenario, I’d focus on one step at a time.

Grab the old data. Check.

Then cycle it, or iterate. Check.

Now, connect to the new system. Check.

Push something to the new system. Check.

Basically iterate a step at a time, than worrying about getting everything working on the first try.

Good luck.