Hans Felix Ramos
Hans Felix Ramos

Reputation: 4434

Can I use relative path in Open Graph?

I'm trying to set a relative path to og:image metadata like this:

<meta name="og:image" content="/images/view.png">

On Sharing Debugger I have the following warning:

Inferred Property The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

There is any way to use a relative path in Open Graph?

Upvotes: 5

Views: 5793

Answers (1)

Andrew Losseff
Andrew Losseff

Reputation: 373

No, og:image won't work with a relative path.

More info here: https://stackoverflow.com/a/9858694/7068514

Upvotes: 8

Related Questions