Something like: curl "rtmp://a.rtmp.youtube.com/live2/*******" and curl "rtmp://live-api-s.facebook.com:80/rtmp/*******"
You can get more detailed information at developers.facebook.com and developers.google.com/youtube. Developers.refinitiv.com isn't the best place for this kind of questions.