JoewyZN's avatar

Social Sharing

Hi .. What package would you guys recommend for social sharing ? I am currently working with https://github.com/prodeveloper/social-share

0 likes
6 replies
willvincent's avatar

I'd probably just use something like ShareThis.. there's probably no reason for this kind of functionality to be server-side code.

1 like
JoewyZN's avatar

thanks for the quick reply, just checked it out and its not what im looking for, it is a bit too basic. I have dynamic pages which i want to be sharing similar to the concept of sharing posts. So i need something slightly advanced with a hint of laravel to it...

andersfloor's avatar

I'm not quite sure what you mean. The client-side sharing method itself is pretty straighforward, and ShareThis does a good job at that. If you are looking to control what content is being shared, you should leverage the use of proper "social" meta-tags (open graph tags and twitter card tags). https://css-tricks.com/essential-meta-tags-social-media/ http://blog.vwriter.com/ultimate-guide-to-social-meta-tags-open-graph-and-twitter-cards/

In my experience it's best to generate these directly in your blade templates based on meta data you stored in the database, although there are packages that can help here like criskonnertz/open-graph. Be careful with user generated content in tags since it looks like it does not escape content.

2 likes

Please or to participate in this conversation.