Notification of the Facebook

Posted on Updated on

Notification of the Facebook

Logic tips of notification of the Facebook 

Facebook is very famous social site which we are use every day. We see notification and count of the notification here I am tell the count logic of the notification.

Just think how its work

When any one post something on the facebook it show us the number count of notification and when we click on the notification icon it reset the count.

Now first how it show the count of the notification on the notification icon.

When a user login to the id of facebook it check the time he/she last click on the notification icon and current time and calculate the activities which happens in that time. Store the notification into the notification table . And with the help of php function Myslqi_num_rows() it calculate the number of rows between current time and last click time.

And show the number on the notification icon.

When a user click on the icon it update the last time and again chain is running.

This is the logic behind the notification count. It can happen with Ajax .

Like

My last click on the notification is 10:00 am and now in my table store the 10:00 as last time if any buddy add new post,picture etc it save time of the post and post which user add.

Now when I open my id at 10:30 it calculate the current time which is 10:30 am and check the last time I clicked on notification icon.

Fetch the all notification between timing 10:00 am to 10:30 am and using the Mysqli_num_row(); it calculate the numbers of rows available and we display the value on the notification icon.

Thank you

For more details and queries please feel free to email, visit or call us. Wishing you the very best for all your future endeavors.

Helpline: 9814666333, 8699444666

Email:info@technocampus.co.in

**************************************************************************************************************

Please fill the FORM and we shall contact you soon.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s