Meta Tags in share url

Hi, is there a way to display a preview of image/video like this?

I tryied editing public.php file in apps/files_share/templates/public.php to add twitter meta Tags, but i’m giving a internal error.