gepolv / fb-zombie Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
(I removed my appid and apptoken)
This runs into an error opening randomnames.txt and requires it to exist in the root directory.
FBZombie = require('fb-zombie');
fbUsers = new FBZombie('appid','apptoken');
fbUsers.ls(function(error,users) {
console.log(users);
});
I am new to node development. i want to create 2000 test users at once, I set up all configuration, but when I am running npm test seeing following errors:
**[email protected] test /Users/bhumeshwerkatre/node_modules/fb-zombie
mocha --reporter spec --timeout 60000 ./test/test.js
Testing for Facebook test user managing
Constructor testing
FBUSER is: [object Object]
✓ constructor with appid and access_token
✓ constructor without aped
✓ constructor without access_token
List test users testing
1) Calling ls correctly
✓ Calling ls without callback specified
Creating test users testing
2) testing createOne
3) testing create
Deleting test users testing
4) testing delete
Testing makeFriends
5) testing makeFriends
4 passing (1s)
5 failing
Testing for Facebook test user managing List test users testing Calling ls correctly:
Uncaught TypeError: Cannot read property 'length' of undefined
at test/test.js:45:19
at fb-zombie.js:61:11
at IncomingMessage. (fb-zombie.js:24:11)
at endReadableNT (_stream_readable.js:905:12)
Testing for Facebook test user managing Creating test users testing testing createOne:
Error: Failed to create test user: Test+User+FB
at fb-zombie.js:84:17
at IncomingMessage. (fb-zombie.js:24:11)
at endReadableNT (_stream_readable.js:905:12)
Testing for Facebook test user managing Creating test users testing testing create:
Uncaught SyntaxError: Unexpected token <
at Object.parse (native)
at fb-zombie.js:129:34
at IncomingMessage. (fb-zombie.js:24:11)
at endReadableNT (_stream_readable.js:905:12)
Testing for Facebook test user managing Deleting test users testing testing delete:
Uncaught SyntaxError: Unexpected token <
at Object.parse (native)
at fb-zombie.js:129:34
at IncomingMessage. (fb-zombie.js:24:11)
at endReadableNT (_stream_readable.js:905:12)
Testing for Facebook test user managing Testing makeFriends testing makeFriends:
Uncaught SyntaxError: Unexpected token <
at Object.parse (native)
at fb-zombie.js:129:34
at IncomingMessage. (fb-zombie.js:24:11)
at endReadableNT (_stream_readable.js:905:12)**
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.