check facebook inbox for new messages permanently

I’d like to ask you for help with this – I know what I need to do but I do not know the best way to choose. I tried Facebook Api but I think it is not the best for this, because every user should register his own app (to obtain key and passphrase). I need to make script for this: I have a linux box and I would like for example to print text “new message arrived” each time I get new message in my fb inbox. The problem is I need to do it universal for my friend so they just download script and insert their login credentials (so no need to register every single app to get api credential).

I think my script should every few seconds connect to fb and get new messages. What do you think about it? Or would you recommend me better idea? Any idea which way should I choose?

I am able to use python, bash, sh, php.

Source: facebook

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.