I took the facebook example but it does use the old versions of libraries and i had to use newer version of express as i use node v0.6.6. When i try to start the app i get Error: Cannot find module ‘restler’. Has anyone got this working with newer versions ?
Share
take a look at the Heroku documentation especially Declare Dependencies With NPM
section.
After checking your
package.jsonI saw that you are using old packages,facebook-clientis right now at the version1.6.0(think about choosing a different wrapper for your graph requests likefbgraph).The
facebook-template-nodepackage is clearly outdated, use it only as a reference (environment variables, Heroku custom files like theProcfile).Programming node.js you should avoid old packages (unless you have a good reason and know how to fork/vendor and fix them) since the core api is changing on every major version (even if there are only small incompatibilities between 0.4.x and 0.6.x).
For a recent project involving facebook I used
authomfor authentication andfbgraph(actively maintained and pretty lightweight) as the API consumer.As final advice, look for the package under active development (and look the the sources and tests), fix/fork/avoid the others.