tinybook
A tiny express server to swap in for your facebook graph requests.
Usage
In your test, start an instance of the fakebook server and get "valid" facebook access tokens for login. Example using request-promise for http requests
// in testconst fakebook = const close =
In your app, use fakebook as the base url instead of https://graph.facebook.com in all environments except production. Example using request-promise for http requests:
// in codeconst baseUrl = processenvNODE_ENV === 'production' ? 'https://graph.facebook.com' : 'http://localhost:4200';
Administrative Endpoints
POST /users
Creates a fakebook user with an access token and passes along any parameters you give it.
curl -XPOST http://localhost:4200/users -d '{"name": "Neil Sarkar"}'
POST /friends/:id?access_token=
Creates a fakebook friendship between the authenticated user and the provided ID.