Twitter and Facebook on my web page

Has any have any idea how to implement a tweet function and a post to my wall (facebook) function onto my web page?

Facebook and Twitter have their own APIs to do this. If you are using a big CMS, ala Wordpress, there should be plugin to do this as well.

yeah i know of there own code to have the button on your site but am wondering if it will work the same on a mobile app (developed with phonegap) or a web site being accessed via a mobile device.