Question

Extract image url for facebook post

  • 8 January 2021
  • 1 reply
  • 824 views

Userlevel 1

Hi Experts, 

i am very new to zapier but it is amazing, !!

i am creating a zap which link up woocommerce and facebook page, 

once a new product is published in woocommerce, it will also publish a post to facebook page.

 

however, when getting the image src from woocommerce, it will present as below

 

images

1

id:2474

date_created 2021-01-07T00:43:51.000+08:00

date_modified 2021-01-07T00:43:51.000+08:00

src https://i2.wp.com/onehappysocks.com/wp-content/uploads/2021/01/22423634809_618810677.jpg?fit=800%2C800&ssl=1

name 男女士粗線拼色中長筒襪(共2色)

alt 男女士粗線拼色中長筒襪(共2色)

2

id 2475

date_created 2021-01-07T00:43:51.000+08:00

date_modified 2021-01-07T00:43:52.000+08:00

src https://i1.wp.com/onehappysocks.com/wp-content/uploads/2021/01/22252011633_618810677.jpg?fit=800%2C800&ssl=1

name 男女士粗線拼色中長筒襪(共2色)

alt 男女士粗線拼色中長筒襪(共2色)

3

id 2476

date_created 2021-01-07T00:43:52.000+08:00

date_modified 2021-01-07T00:43:52.000+08:00

src https://i2.wp.com/onehappysocks.com/wp-content/uploads/2021/01/22423661169_618810677.jpg?fit=800%2C800&ssl=1

name 男女士粗線拼色中長筒襪(共2色)

alt 男女士粗線拼色中長筒襪(共2色)

 

So, my problem is how do i capture every image URL and as a source to post it to facebook through Zapier??

 

thanks

Louis


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +12

Hi @louis kwok, welcome to the Community and I’m glad that you’re enjoying using Zapier 🙂

 

Is the problem that you’re not seeing the right image from WooCommerce or that you’re having trouble adding a photo to the post in WooCommerce?

 

The first thing to know is that you can only add one image to a Facebook page post, so it’s not possible to add all of the images. 

 

The second thing is that I think you’ll need to change the format of the information from WooCommerce to get an image. From the way that the text is formatted above, it could be that the information from WooCommerce is coming in as line items. This help guide explains a bit about line items in Zaps: Use line items in Zaps

You can split the line items into single fields using a Formatter step - here’s a guide that explains how to do that: Convert a Line Item Property to Multiple Single Values using the Line Item to Text Utility  You can then use one of the urls as the image for your post.