Script to update facebook status using PHP

Do any of you have a link to good/working PHP script that updates Facebook status using cURL?

The links I can see in the web looks too old;
worked when facebook was too old.

It looks that everyone has attempted to connect to mobile version of facebook.
But no examples from above links update the facebook status.

Any references to working scripts?

Thanks for your research.