I have a website (written in php/mysql) which allows users to comment on other users photos.
When a comment is posted, I would like the same comment to appear on the users twitter and facebook accounts.
Rules > if they provide a TW/FB username in their profile then the comment would appear on their TW/FB walls. If they do not supply a username then nothing will happen.
Just just to recap, after making a comment on my website, first check users profile in the database to see if username's exist. If yes, then post to FB/TW walls.