Strugloing to get photos extracted from wordpress post

What are you trying to achieve?

Hi All !
My goal is to create an automation that recognizes when I post to my blog/portfolio and then uses the post data, including text and images, to create a social media post with the same images.
Current Status

Image Posting: However, when I try to use the Facebook post with photos app, it requires photo sources that I’m unable to provide.
would greatly appreciate any assistance or guidance you can provide to help me overcome this challenge.
Thank you very much!

Steps taken so far

Content Posting: The automation works well for posting content to my Facebook page using the Facebook post module.
HTML Issue: I have an HTML module that generates a list of image links, but Facebook does not recognize this format. Facebook requires either a JPG file or a URL, and directing the HTML module to it doesn’t seem to work. Despite spending hours on this, I’m motivated by the fact that I can post content to Facebook, and I’m determined to resolve this issue.

Screenshots: scenario setup, module configuration, errors



Welcome to the Make community!

Looks like your “Get a file” module isn’t actually downloading a file.

Try to get the correct image URL to download first.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Thank you, Samliew. I’m aware of that and trying to figure out where I might be making a mistake. The HTTP module is directed to a link that points to a page containing all the images (“15 Link ”), but instead of files, I’m getting a long string of code.

Can the HTTP module download more than one file from a single link? I’ve also tried pointing it to a post with just one image file, but the result was the same.

What should the URL value in the HTTP module be set to? Should it be the website address retrieved by Module 1 in this case, or the direct link to an image? (I’m not getting the direct link using this WordPress module.) Thank you


No.

You’ll need to match all the image links from the page code you downloaded, using a Text Parser module.

Try using the Text parser “Match elements” module:

Searches string elements matching predefined patterns.

For more information, see https://www.make.com/en/integrations/regexp, and https://www.make.com/en/help/app/regexp in the help centre.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Thanks! I’ve managed to extract a featured image and post it to Facebook, including the post text. Super happy with that! However, I’d still like to be able to extract images links from a long string of text in the post.

I’ve managed to get TextParsel working, and it’s successfully giving me all the image URLs—great! But here’s the issue: I’m using the http module to fetch the image files in binary. While it works, it’s extracting all the photos into multiple bundles, and each bundle is used to create a separate Facebook post with one photo plus a featured image.

What I need instead is a single post containing all the photos. I’m making progress, but could you advise me on how to limit the number of posts and include all the photos in one post?

Thanks! :blush: