Hi !
I started recently playing with the Onebox gem to see why it wouldn’t Onebox my site: https://www.avito.ma.
I am no ruby developer but I understood that based on the URI , Onebox chooses what engine to use.
I also believe that there is an engine called html which is the default one if the link doesn’t match any predefined engine.
The question I’m asking is : why doesn’t onebox choose the default engine HTML to my website? When I’m debugging the @engine_class I get nil in the preview class , initialize method.
Open Graph has 4 required fields (title, type, image and url). Your website only shows title and image. Without a type, the onebox doesn’t know what to do.
Yeah, I was chatting with @eviltrout about that the other day. With the new whitelist everything, we should use the same approach as Facebook, that tries to fill as many tags as possible (like using title tag instead of og:title if the last doest exist).
@zogstrip will reply here when og:type inference is in. I see very little risk if the other necessary fields are present.
I suppose we could also safely infer og:title as @falco says, using the HTML <title> tag, but I am not sure we ever want to infer description or image.