Get number of likes of your/any Facebook page via PHP

If you want to use somewhere the number of people who likes your fan page, here’s the way to do that: Create Create a new basic application from here. Just enter some data and you will receive AppID and Secret keys. Download Download the PHP library to work with Facebook API. git clone https://github.com/facebook/php-sdk.git Write … Read more

Face Recognition with Node.js

It’s pretty simple to have a basic face recognition in Node.js using the Face.com API. Pre-Requirements : 0. You will need apikey and api-secret from face.com. You can obtain them by clicking here. 1. I am using a package called restler to handle REST requests. npm install restler Here is the code: var sys = … Read more

MongoDB, Node.js and admin auth

There is a big challenge to make MongoDB driver to work with Node.js, but here is an cool and working example to do that: Require: var mongodb = require(“mongodb”); //require node-mongodb-native var settings = require(‘./mconfig’); //for settings Connect to the admin database: var mongoserver = new mongodb.Server(settings.mongo_host, settings.mongo_port, {}); admindb = new mongodb.Db(‘admin’, mongoserver); Try … Read more

Full HTTPS REST server in Node.js

I will show you now, how to write a simple HTTPS JSON REST server using node.js components. Grab a beer, open your IDE and let’s start hacking. 0. Create certificates. If you don’t have valid https certificates, you can generate one for testing purposes. If you need one cool certificate, you can join cacert community. … Read more