anonymous
anonymous

Reputation: 75

I am using laravel sharing using jorenvanhocht/laravel-share package but it does not show preview or thumbnail when I share on Social websites

I am using jorenvanhocht/laravel-share package in laravel.Its working fine but when I share it on social site then it does not show preview or thumbnail.Please let me know how can it be done.

echo Share::currentPage($video->title)
        ->facebook()
        ->twitter()
        ->linkedin('Extra linkedin summary can be passed here')
        ->whatsapp();

<input type="text" value="{{ url()->full() }}" readonly>

The above code is working fine when I share link but the problem is only it does not show preview or thumbnail of the video but just only link. So, I want the preview with the link.

Upvotes: -1

Views: 2005

Answers (1)

Tim
Tim

Reputation: 571

You mean a preview on facebook? Those aren't created by adding information to your link, but Facebooks creates them when a bot visits your site and sees certain meta tags.

Most sites use the OpenGraph standard, you can read more about it at https://developers.facebook.com/docs/sharing/webmasters/ or https://ogp.me/#metadata. If you use the right tags, previews, and names will automatically be added to previews on different social media platforms.

Upvotes: -1

Related Questions