I am working on something smalland was thinking of making a good notification generator like facebook does Mainly I want how the the tables might look. How to make updates and all the nessecities and cautions i should have Thanks
I have users as they upload images comment like a persons profile I want the person whose post was like commented or any other action to be notified that this person likes your photo
The way Facebook does it
There’s many ways to do it, one of which is to have a column in the table titled
new_notificationthat will tell you if the notification is new(read by the user or not). So, for example, if a person likes another persons picture, in the table that column will havenew_notificationset toY. When the user who’s picture was liked logs into the website, you search for all rows wherenew_notification = Ydo a count and show the number of notifications like facebook does. Once the user has seen the notifications or opened the notification bar, go through that table and set all the rows withnew_notification = Yto'N'.