How to post to social media?

Dear Guys!
How to post to facebook timeline, LinkedIn using Yii2 framework ?

Via these social network APIs.