Closed standuprey closed 1 year ago
Hello, I can look into it.
So I think the issue is because ogImage
can be a string
, object
and array
. I'm not sure how to support all three of these datatypes. In the next version of openGraphScraper
I'm planning on update all properties to just be one datatype so we don't have issues like this in the future.
Hello. open-graph-scraper@6.0.0
is now live and now ogImage
will always be the ImageObject[]
type which will have a url
property. Let me know if this fixes your problem.
Closing this for now. Please reopen the issue if needed.
Here is my code:
When I try with
https://seth.blog
the console.log returns thisSo it seems to me that if I want the image, I need to get it from
data.ogImage.url
, but that is not part of the return type. Is it missing?