First you have to obtain APP_KEY and APP_SECRET in Dropbox.
You will need to obtain first a Facebook Graph API in order for this to work.
This is a script to create a post in Twitter. If you have a Twitter account then you are one step closer to completion. You need to create an app in Twitter and get the needed keys to make it work.
You need to download GeoIP.dat for the lookup data
Supposing you have an xml like this