helpmyworld's avatar

Share my blog post with Facebook, and other social medias

Good day,

I am nearly done with my blog. What is the best way to share my blog posts with social media (Facebook, twitter, Linkedin)? I know with wordpress there is something called publicize, do we have such for laravel?

Thank you

0 likes
9 replies
CodeFox's avatar

No, I just searched for a relevant package. It looks simple to work with however.

DuikGek's avatar

you can Install the package called laravel/soc very useful and you can fellow the Doc in laravel. Social Authentication

helpmyworld's avatar

Thank you allow me to work on it then i will revert back.

Rahmanrezaee'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.

Please or to participate in this conversation.