发布所有社交媒体上的文章

I have searched the Internet for 1 hour but I got nothing.

I developed a news portal site in PHP and now I want my user to share the news article with the respective title, thumbnail and content on all social media networks (ideally by clicking only in one button).

You can't share with single click on all social sites at once. There are lots of plug-ins that supporting such features.

  1. Add This
  2. Share This

You just need to put their Javascript into your page.

Hope this helps !!

Someone, you need to define "all" social media, do you want to include "P0rnshare" the great new social media app for sharing great p0rno videos, for example?

If you can't find a pre-made answer or the answers you get such as the details given by Sanjay, You should approach this by having a PHP/Ajax page to go through and take the data you wish to submit and apply it to each Social media outlet you want to use, so have a Twitter submission system and then a Facebook submission system, etc.

Edit: The above outline description would only work if the user was currently logged in to each of their respective social media profiles. Else each social media would require login validation. A single page system can use these login cookies to validate authentication for each social media site.

Similar scenarios can be handled using ballerina, which is explained in detail in this blog.