I want to trigger a function immidiately after a user posted a comment on a post. I want to read from session data, find the user ID and look his facebook_id if he/she has any. Then i will post the same comment on his/her Facebook page.
How can i immidiately know if a user has posted a comment?
How can i know which user is that?
How can i trigger a function after that?