Skip to main content
Best answer

How to get the featured image URL - Wordpress to Instagram


Hi there,

I’ve set up a Zap to share new Wordpress blog posts to Facebook. This shares the link which displays on fb with the featured image, gravy.

 

I’d also like to share this on Instagram - however within the post data from the wordpress post there’s no image URL I can find. Just the “wp:featuredmedia href" which is: https://URL.com/wp-json/wp/v2/media/194

 

Can anyone help? How do I send a .jpg file image URL for the featured image from Wordpress to Zapier?

 

Cheers,

Ben

Best answer by JohannBest answer by Johann

I found a way to get the featured image url :

1- Wordpress App with trigger New Post In Wordpres
2- Webhook Api with Event Custom Request and Action GET on the url of (Wp:featuredmediaHref)  variable of the step1 (something like https://domain.com/wp-json/wp/v2/media/2132

3 - Instagram Business app with Event Publish Photo and use the URL of the (Guid Rendered) variable of step 


I can’t get custom field until now. I thought it’s possible to include the custom field somewhere in the page and then scrap it with a tool, but i didn’t find it.

Enjoy :)

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

10 replies

Wemakefuture
Forum|alt.badge.img+8
  • Zapier Expert
  • 166 replies
  • November 6, 2020

Instagram is a trigger only app. This means you can only get images from there to another app.


steph.n
Forum|alt.badge.img+8
  • Builder
  • 899 replies
  • November 10, 2020

Hi @TheFloristFarm, did Wemakefuture answer your question in this topic? Please let us know by marking Best answer if so. If not, let us know by replying back to this topic.

Thank you!


  • New
  • 3 replies
  • December 10, 2020

There is a zap for connecting WordPress posts to Instagram Business, but I for the life of me can’t figure out how to pass a featured image either. Evidently the capability is there but the documentation for pulling it off doesn’t exist which is a real bummer. When I look at the data available to be passed in the zap, a url for the featured image does not exist. You can get the featured media id number or the json media xml but not the actual url of the image. I’m beating my head against the wall looking for any documentation. If anyone has pulled this off successfully, please post the solution.


  • Beginner
  • 1 reply
  • December 29, 2020

It was possible with Wordpress legacy, but that stopped working today. I can’t figure this out either. I’m trying to send an image to Buffer. Any idea?


  • New
  • 3 replies
  • December 29, 2020
ASM wrote:

It was possible with Wordpress legacy, but that stopped working today. I can’t figure this out either. I’m trying to send an image to Buffer. Any idea?

Wish I had better news for you. I had some back and forth with them about what gets passed in the post data for the zap. They know something is jacked up with the feed and presumably they are working on fixing it. No ETA from them. They told me I can periodically check https://zapier.com/zapbook/updates/ and see if they release a fix. Hopefully if enough people squawk about it they will make it a priority to fix it. I’ve disabled my Instagram Business zapier until they figure out the issue on their end. No sense spinning my wheels trying to fix something that clearly isn’t supported yet.

 


  • New
  • 3 replies
  • December 29, 2020
Wemakefuture wrote:

Instagram is a trigger only app. This means you can only get images from there to another app.

Supposedly Instagram Business zapier could be triggered from WordPress Post but without that featured image url it’s not possible. The zap is there but it’s a winchester mansion door that goes nowhere.


  • Beginner
  • 9 replies
  • January 4, 2021

Same problem :/


Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • January 5, 2021

Hi @Johann! The best thing to do here is to get in touch with the Zapier support team so they can go through your Zap with you to make sure that there’s not another way to get the image that you need. You can contact them using the Get Help form: https://zapier.com/app/get-help


  • Beginner
  • 9 replies
  • Answer
  • January 5, 2021

I found a way to get the featured image url :

1- Wordpress App with trigger New Post In Wordpres
2- Webhook Api with Event Custom Request and Action GET on the url of (Wp:featuredmediaHref)  variable of the step1 (something like https://domain.com/wp-json/wp/v2/media/2132

3 - Instagram Business app with Event Publish Photo and use the URL of the (Guid Rendered) variable of step 


I can’t get custom field until now. I thought it’s possible to include the custom field somewhere in the page and then scrap it with a tool, but i didn’t find it.

Enjoy :)


janosch.hrm
Forum|alt.badge.img
  • Beginner
  • 10 replies
  • January 15, 2021

I’m not seeing the (Wp:featuredmediaHref) variable for some reason…

 

It’s not showing up in the list of data I’m getting back from the new WordPress post trigger

What could that be caused by? Has anybody else experienced that as well?