mglaman, 1 month ago @DaleTrexel I use the embed/embed library, which normalizes open graph and other metadata. It's really simplistic $embed_link = (new Embed)->get($media_url); return match ($name) { 'default_name', 'title' => $embed_link->title, 'url' => $media_url, 'description' => $embed_link->description, 'image' => $embed_link->image, default => null, };
@DaleTrexel I use the embed/embed library, which normalizes open graph and other metadata. It's really simplistic
$embed_link = (new Embed)->get($media_url);
return match ($name) { 'default_name', 'title' => $embed_link->title, 'url' => $media_url, 'description' => $embed_link->description, 'image' => $embed_link->image, default => null, };