Question

Failed to create a create page photo in Facebook Pages: Your photos couldn't be uploaded. Photos should be less than 4 MB and saved as JPG, PNG, GIF, TIFF, HEIF or WebP files.


Failed to create a create page photo in Facebook Pages

Your photos couldn't be uploaded. Photos should be less than 4 MB and saved as JPG, PNG, GIF, TIFF, HEIF or WebP files.

 

File is 205KB 

I have tried it uploading from computer, using link from google drive 

I’m at my wits end.  


12 replies

Userlevel 7
Badge +14

Hi @MarketingWithPre 

Good question.

For us to have enough context about your Zap, please post detailed screenshots with how your Zap steps are configured, thanks.

Userlevel 7
Badge +9

Hey there, @MarketingWithPre! Sorry to hear you’re running into this and we definitely want to help.

As Troy mentioned, can you share your full workflow with us including triggers/actions and any additional apps you’re using? Screenshots of the zap setup (with any personal details removed) are also super useful in helping us dig into this with ya. 🙂

In the meantime, one thing I want to mention is it sounds like you’re using a URL to post an image to Facebook Pages though. Can you double check you’re using the “media url” or a direct download link?

Here’s a similar topic that may be useful and explains a bit of this:

Keep us posted!

 

 

Userlevel 7
Badge +14

@MarketingWithPre 

 

For the FB step we’d need to see how this section is configured.

 

Also, if you can provide the actual link to the image file you are trying to use that will help us, help you.

 

Observation

Your Filter step conditions, as they are currently configured, will always evaluate to TRUE, meaning the Filter step will always be a success and pass, because the left and right side inputs are being compared to themselves.

 

 

Userlevel 7
Badge +14

@MarketingWithPre 

We need to see how this section is configured in your Zap step for Facebook.

 

 

https://drive.google.com/file/d/15W5uaQbltU1WQVTzQVL7aIcz0n5mHjuQ/view?usp=sharing

 

is the link I tried to use but I also put the photo in as an upload trying to make it work.

Userlevel 7
Badge +14

@MarketingWithPre 

 

The link you provided vs the link show as the example mapped in the Photo field are different.

I can tell because of the usp=sharing vs usp=drive_web value at the end.

Regardless, both links goes to a View page for the image, which is not the correct link to use.

 

https://drive.google.com/file/d/15W5uaQbltU1WQVTzQVL7aIcz0n5mHjuQ/view?usp=sharing

 

The Photo field needs a direct download link.

Example from the link you provided: https://drive.google.com/uc?export=download&id=15W5uaQbltU1WQVTzQVL7aIcz0n5mHjuQ

Notice how this initiates a direct download of the file via the browser.

RESOURCE: https://sites.google.com/site/gdocs2direct/

 

I’m not sure how you are getting the GDrive image link into Monday, but you need to use this version of the GDrive file, which is like the Example above.

 

Otherwise, in the Zap you’ll need to convert the GDrive VIEW link from the Monday trigger in step 1 to a GDrive DIRECT DOWNLOAD link.

That may take a few Formatter steps to convert or 1 Code step.

Thanks I think none of that make sense to me, perhaps I need to look at a different product that isn’t so over my head.

Userlevel 7
Badge +11

Hi @MarketingWithPre

I think what Troy is saying here is that the link that’s coming from Monday.com isn’t a direct link to the file itself, it’s a link to a page where you can view a preview of the file. If you’re not able to get the direct links to the files added into Monday.com instead of these “preview” links, then the workaround Troy suggested was to try and get the Zap to generate the direct link to the file instead.

For the workaround you’d essentially use a Formatter by Zapier action to extract the ID of the file. Then in the Facebook action you’d use the ID that’s output from the Formatter action, to generate a file download link (direct link to the file), which Facebook could use to get the image. Here’s how you’d do that…


1. Set up the Formatter action to extract the file’s ID number:

  • Add a Formatter (Text > Extract Pattern) action.
  • For the Input field select the field that contains the file from Monday.com
  • For the Pattern field enter the following pattern: 
    (?<=https://drive.google.com/file/d/)(.*?)(?=/)
  • This essentially searches for the text that’s in between “https://drive.google.com/file/d/” and the following “/” and retrieves it.
  • Leave the rest of the fields as they are and click Continue
  • Click on the Test action button to run a test, this should show the file’s ID number output into a field.

Here’s an example of how the setup of that action should look:

cd212521af6d71008946b8bac8b01ac6.png

2. Generate the link in the Facebook action:

  • Head over to the Create Page Photo (Facebook) action.
  • Paste in the following text: https://drive.google.com/uc?export=download&id=
  • Then after the “&d=” part select the Output field from the Formatter action that contains the ID that it extracted.

That should look something like this:

5f037ace99f6d0a92f0365cf1c21404b.png

Once you’ve made those changes, test the Facebook action again to see if it’s now able to successfully create the post on Facebook with the image.

Hope that helps to explain the process. If you run into any trouble on that just let us know! 

Reply