• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Webhook URL return links of created posts

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:
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:
P

Pabblymember11

Guest
You can check it through a webbooks testing site called webhook.site.

You can copy the webhook URL provided by Webhook.site inside your plugin and do the test event inside the application to see if the webhook is being worked inside Webhook.site. This will double-confirm the issue.

Here is a sample video that you can follow to track the webhook issue:

 

sepson

Member
Thank you! This won't help me, because there is no further information in the callback of the webhook. I've done a small workaround with an additonal api call, that will do an official api call to instagram. In the workflow of my facebook post creation, i get an id, that i can reformat to get an valid link. not the best solution, but at least it works 😄
 
P

Pabblymember11

Guest
Hey @sepson

Thank you for confirming that it works for you. If you require any additional assistance with the API by Pabbly call, please see the video tutorial below.

 
Top