Category Archives: Social


August 19, 2015 8:25 pm

How to Create Real-time Chat Application with Node.js Part 4


How to Create Real-time Chat Application with Node.js Part 4
Finishing up the back-end: When a user disconnects from our app, we remove the saved nickname from Redis using the lrem method which we use to remove one occurrence of the value stored in the socket.nickname property. Then, we get all users online again and broadcast them to all connected.

[ Read More ]


August 18, 2015 7:10 pm

How to Create Real-time Chat Application with Node.js Part 3


How to Create Real-time Chat Application with Node.js Part 3
The back-end of the chat First we load the express module and set the port to be equal to process.env.PORT (which will be an environment variable defined by Heroku) or 8080 if we are on localhost. Then we create our Express server which will respond to HTTP requests. We load the html entities module, set Socket.IO to listen to our server and require Redis. Theredis.createClient takes as its first argument the port the database is on and as a second argument – the host it is on.

[ Read More ]


August 17, 2015 7:31 pm

How to Create Real-time Chat Application with Node.js Part 2


How to Create Real-time Chat Application with Node.js Part 2
The client-side JavaScript: First, we initialize our socket client, ask the user for a name and keep asking him until he types less than 26 characters. Then, we check if the form is submitted (there is only one form and it handles new messages) and if the message does not contain more than 100 characters we send the data to the server using the socket.emit(eventName, messageToPass) method.

[ Read More ]


August 16, 2015 7:11 pm

How to Create Real-time Chat Application with Node.js Part 1


How to Create Real-time Chat Application with Node.js Part 1
In the next tutorials, we will be building a simple Node.js chat application. Messages will be delivered in real-time and we are going to take advantage of the Speech Synthesis API for the supporting browsers so that the computer can read aloud the messages as they arrive in the chat. We will be using Node.js, Express and Redis for persistence. Express is a very popular framework for Node.js that eases development and provides many useful features.

[ Read More ]


September 10, 2014 1:05 am

How to Add Github oAuth login on your website using PHP


How to Add Github oAuth login on your website using PHP
In this tutorial I am going to show you that how you can add Github oAuth login system in your PHP websites and its very easy and simple to integrate, Github.com is a very important service for developer's. It will help your users for easy login without writing login forms just in one click and user logged in. We have many other one click login systems with Facebook, Google, Linkedin and Microsoft you can use them also.

[ Read More ]


August 19, 2014 2:11 pm

How to Post Into Facebook Group with PHP using Graph API


How to Post Into Facebook Group with PHP using Graph API
Hey guyz I received many requests from my readers to write tutorial on facebook Group status update so I am going to show you that how you can do update your joined groups. You can joined many groups and update your status on groups to promote your websites or your products on all groups and this is an easy way to promotion.

[ Read More ]


August 6, 2014 8:22 pm

Search Content in Facebook with Open Graph API in PHP


Search Content in Facebook with Open Graph API in PHP
In this tutorial I will show you that how to search on Facebook using open graph API in PHP. Using Open Graph search you can access all public data very easily by typing your required word like "PHP" you will get all the information shared publicly on facebook contain word PHP. Its very simple and easy to integrate and you can access your required data on a single page.

[ Read More ]