Вы можете использовать это:
String getMetaTag(Document document, String attr) {
Elements elements = document.select("meta[name=" + attr + "]");
for (Element element : elements) {
final String s = element.attr("content");
if (s != null) return s;
}
elements = document.select("meta[property=" + attr + "]");
for (Element element : elements) {
final String s = element.attr("content");
if (s != null) return s;
}
return null;
}
Тогда:
String title = document.title();
String description = getMetaTag(document, "description");
if (description == null) {
description = getMetaTag(document, "og:description");
}
// and others you need to
String ogImage = getMetaTag(document, "og:image")
....