• Resolved oldbroth3rz

    (@oldbroth3rz)


    Hi,

    I’m using wordpress and woocommerce headless with gatsby as frontend and I’d like to know if there’s any possibility to connect it to facebook with this plugin.
    On a first hand I thought that just redirecting products url should work but it seems that it will probably be harder than that

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey @oldbroth3rz ,

    Thank you for reaching out to us and for your patience during the weekend for our response. Happy to help with your questions!

    I’m not sure if our plugin can be used with a headless architecture for WordPress and WooCommerce, but I’d love to find out for you. Our plugin will use two different ways to sync your products to your Facebook Shop:

    a) During the daily sync, a csv feed file is generated in your server and sent to Facebook to insert/merge in your Catalog Manager.

    b) When updating your products, we’re using a Graph API query to update your products in your Facebook Shop too.

    These two processes are in the core of the plugin and can’t be substituted in the time being if you’re looking into using our plugin. There are a few more things that are taken into account when you first install our plugin and run through the setup, however, would it be possible to first share with me a bit more information on the steps that you’ve already taken to incorporate it to your site?

    Looking forward to your response.

    Best regards,

    Pit
    SkyVerge

    Thread Starter oldbroth3rz

    (@oldbroth3rz)

    Hi,

    Thanks for your response.
    I’ve actually done nothing to incorporate it because there are some points that struggled me.
    First, the fact that le plugin wants to integrate Facebook pixel but I suppose that it should be on the client-side and not on the back.
    Secondly, I suppose that the URLs send with the CSV feed file or the Graph API query are also linked to the backend.
    I use directly WordPress to update the products so the core of the plugin shouldn’t have to be substituted but I have to admit that my knowledge of the Facebook shop is quite limited, it’s why I’m here to know if it’s even possible before going deeper.

    Best Regards, Christopher

    Hey Christopher ( @oldbroth3rz ),

    Thank you so much for sharing the extra details with me. I needed to consult with my colleagues, so my apologies for the delayed response.

    It seems that the complexity of integrating our plugin with a headless WordPress site differs based on what you’d like to achieve.

    If it’s mainly pointing the product URLs to something other than your WordPress locations, you could potentially use the facebook_for_woocommerce_integration_prepare_product filter to adjust URLs (and any other data) to fit your needs. Since the product feed file is generated in the backend and served up to Facebook without the need for a front end, you shouldn’t encounter any big issues regarding that.

    Furthermore, it seems that the default Facebook Shop setting is to add the products to the cart and go to checkout automatically. If you’re considering moving ahead with this, you’ll need to toggle that setting off at Facebook to make sure users go to the product page instead.

    Now, if you’re also aiming to add pixel and messenger functionality on the remote site, you’d probably need to implement that from scratch since the plugin’s implementation relies on a WordPress theme and its various hooks to add the pixel & messenger code.

    So, based on the above, would it be possible to let me know if you’re interested only in a specific functionality of our plugin, or you’d like to make a full integration instead?

    Looking forward to your response.

    Best regards,

    Pit
    SkyVerge

    Thread Starter oldbroth3rz

    (@oldbroth3rz)

    Sounds great!

    If I can have the products on Facebook that take the user to my website that’s all I need, at least at this time.
    Do I have to do anything special than install the plugin and use the facebook_for_woocommerce_integration_prepare_product filter in order to do that?

    Thank you so much for your help!

    Best regards, Christopher

    Glad that’s helpful for you! ??

    Since this is a filter that’s using our plugin, you shouldn’t need any further adjustments. I would recommend taking some time going through the filter to fully understand when it’s called and how it can be customized, but other than that, a basic install and use of the filter should suffice.

    If you do encounter any issues or questions, though, I’d be glad to further help you with them, Christopher ( @oldbroth3rz ). Anything else I can help you with in the meantime?

    Best regards,

    Pit
    SkyVerge

    Hey @oldbroth3rz,

    It has been a long time since we heard from you, so I’m going to mark this topic as resolved.

    If you’re still experiencing issues please take a look at our documentation for more information and create a new thread if you have further questions.

    Thanks,
    Tamara ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using woocommerce rest api with gatsby’ is closed to new replies.