Crispofy


Hi , Crispofy is my college project, I made this in four months by learning Node.jsSocket.io, Chrome extensions and Facebook Graph API . And i want to share this with you.

Crispofy is Facebook brand engagement platform as chrome plugin. 

Problem

There is a problem or something non existence in system (Facebook) or third party. How can we get the update of our favorite page while not using Facebook? What’s new posted on that brand page when we are not logged into Facebook. 

Solution

What I did is to provide instant updates of your favorite brand pages rite on your screen Your time is precious and CrispoFy is platform which allows you to get notified while you are doing your important tasks, weather you are busy in reading mails , playing online games, surfing information or anything. It just notifies you on your browser screen that is update or event from your favorite brand page.

How Crispofy works?

 Node.js is sever side JavaScript, so we can write scalable and high-performance servers. So I have written all server side code with the help of express.js. Express.js is high performance framework for Node.js.

Server side 

I need the facebook page feed. Then in server side a chunk of code which fetches the feed from facebook and parse it .It send http request to facebook page for fetching a feed. For requesting I am using node.js request module. fetched feed from facebook is in XML format. I convert it into JSON because its easier to handle JSON. In JSON response it contain ID, Message, link and other info. I need just message so i can easily iterate over json response and get ID from it .



A worker  job runs every n seconds and pulls content or feed from a given page.

The worker job then checks if the fetched feed or content is new or fresh.

If yes , then worker job then pushes the update to the socket server on its own channel. 

Then socket server just broadcast the update to all plugins listening on that channel or page . 





No comments:

Post a Comment