webhintio / hint

💡 A hinting engine for the web
https://webhint.io/
Apache License 2.0
3.63k stars 687 forks source link

[Hint] Open Graph Protocol #3118

Open Malvoz opened 5 years ago

Malvoz commented 5 years ago

I think https://github.com/webhintio/webhint.io/issues/516 warrants a hint for OGP implementations. 😂

The hint would presumably look for:

If at least one of the above exist but doesn't fulfill the minimum requirements (e.g. must include an og:title, an og:image of at least 200x200px with an absolute URL, valid image file formats, not serving larger images than the maximum allowed size etc.) then the check fail.

I can update the list of requirements for the respective social platforms (as described in https://github.com/webhintio/webhint.io/issues/516#issue-360078914) if you think this should be a hint.

molant commented 5 years ago

@Malvoz yes please, update the list of requirements. Looks like there should be different errors levels depending on what's missing/wrong (error, warning, info, hint). If you have already an idea of what should be each thing please share it.

Thanks!

Malvoz commented 5 years ago

Sorry for the delay, for a proper overview of what is required/recommended for developers based on the support across platforms, I created an OGP support & requirements document. But things like formats and correct structure of metadata is explained in https://ogp.me.