I have developed an app using Phonegap for Android and IPhone. Is there how to programm the functionality with the Phonegap Framework to share a URL to twitter and Facebook for Android and IPhone? 

Thanks
['https://Stackoverflow.com/questions/13140659', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1551880/']
You have a couple of hybrid plugins for Phonegap which cover twitter and facebook among other social services:

* [ShareKit for iOs](https://github.com/mohamedfasil/ShareKitPlugin-for-Phonegap-3.0)
* [Share for Android, iOs & WinPhone](https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin)
Currently the best cross-platform social share widget is [this one](https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin) which is also [available on PhoneGap Build!](https://build.phonegap.com/plugins/382)

It not only supports sharing via the native share widget, but you can also share directly to Facebook, Twitter, Pinterest, etc.