twitter api status

How do I update my Facebook Status from outside Facebook?
I’ve seen a php hack using curl that logs you into the mobile version of Facebook but it is against Facebook’s t&cs and it automatically logs you out of the mobile site. The FB Twitter app allows syncing between FB and Twitter but has a half hour delay and adds ‘is twittering’ to the status. I want to be able to update my FB status from an external app (eg. using php). Does the facebook api allow me to update my status externally? I could then set up a cron job to check my twitter status and so update my facebook status as well as the other way round (which ever is the newer status). I’ve Googled for ages and I can’t find the answer!
You can log into facebook using a mobile phone, don’t know if the twitter app works, when you update your Ecademy status, it will flow though to Twitter and then on to Facebook automatically
http://www.ecademy.com/node.php?id=91403
TWEET THIS! Twitterize Your Pages HTML Tutorial Trick Tip