hello,how i can share video on my website to facebook and to twitter by meta tags in html
and to share image too to facebook and twitter but not all page only share for video and image

I don't think it's quite possible to (to my understanding of your post):

Input custom code from your website and make it interactive on public site, where everyone else can see and interact with it.

This would leave a lot of holes in security of Facebook and make your page, or rather your visitors vulnerable to XSS.