sepson
Member
Hi I've written a small plugin for WordPress, that offers the ability to create social media posts for Instagram and Facebook.
I'm using the WordPress: New Post Published Webhook URL to transmit the data.
Is there any way to retrieve the links of the created posts from both within the response of the webhook?
At the moment the Webhook response is only:
It would be nice to get something like this:
Main reason is, i want to save this in my WordPress database, that this will be easily checked with an click, that all worked fine and the users know, that the post were already published.
I'm using the WordPress: New Post Published Webhook URL to transmit the data.
Is there any way to retrieve the links of the created posts from both within the response of the webhook?
At the moment the Webhook response is only:
JSON:
{
status: 'success',
message: 'Response Accepted'
}
It would be nice to get something like this:
JSON:
{
status: 'success',
message: 'Response Accepted',
created_posts: {
instagram: "https://www.instagram.com/p/__POST_ID__/",
facebook: "https://www.facebook.com/__FACEBOOK_PAGE__/posts/__POST_ID__"
}
}
Main reason is, i want to save this in my WordPress database, that this will be easily checked with an click, that all worked fine and the users know, that the post were already published.
Last edited: