Comments (8)
The same here
from facebook-chat-api.
Can you print out the contents of ret
right before line 801 of index.html?
It looks like the api is having trouble generating a graph access token, unfortunately I don't get this problem on our test account.
You could also see if it's possible for you to log into the account you're using and access this URL: https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=me%3Ffields%3Did%2Cname&version=v2.3
from facebook-chat-api.
here's ret
{ __ar: 1,
payload: null,
jsmods:
{ require:
[ [ 'Cookie',
'setIfFirstPartyContext',
[ [length]: 0 ],
[ '_js_datr',
'ycxRVSRRbi3N2ZVc9lYSmISs',
1494496201000,
'/',
'.facebook.com',
false,
[length]: 6 ],
[length]: 4 ],
[ 'ServerRedirect',
'redirectPageTo',
[ [length]: 0 ],
[ 'https://www.facebook.com/connect/login_success.html#access_token=ACCESS_TOKEN_HERE&expires_in=4199',
true,
[length]: 2 ],
[length]: 4 ],
[length]: 2 ] },
js: [ 'UMpUI', [length]: 1 ],
bootloadable: {},
resource_map:
{ UMpUI:
{ type: 'js',
src: 'https://fbstatic-a.akamaihd.net/rsrc.php/v2/yQ/r/wInu57m6uFQ.js' } },
ixData: {},
lid: '0' }
it seems like it should be getting ret.jsmods.require[1][3][0]
instead of ret.jsmods.require[0][3][0]
on line 801
i think the best solution to fix this is by using try and catch block, since your test account doesn't have this problem
i can make pull request if you want
sorry for the opening and closing, i accidentally clicked the wrong button lol
from facebook-chat-api.
Same problem here.
from facebook-chat-api.
Thanks for the info guys, I think I'll be able to push a fix within an hour or two.
from facebook-chat-api.
OK I published a fix to version 0.1.10.
Does this fix the problem for anyone?
from facebook-chat-api.
Yes! fixed for me.
from facebook-chat-api.
fixed.
from facebook-chat-api.
Related Issues (20)
- chrome extension HOT 1
- How to change Group Thread Name? HOT 1
- Cannot receive "message" from api.listenMQTT when trying to change userAgent HOT 2
- sendMessage can't use param url HOT 1
- api.getThreadList doesn't return page and user url
- Cannot read property 'name' of undefined
- Error 1357005 when setTitle
- how to listen to Message Requests from non-friend accounts? HOT 1
- Rate limit? HOT 1
- esockettimedout HOT 1
- fix login erorr HOT 9
- api.sendMessage is not working now err: 1357005 HOT 2
- The attachment could not be found. HOT 1
- Unexpected token < in JSON at position 0 HOT 11
- Error when use api.listenMQTT (SyntaxError: Unexpected token ↓ in JSON at position 0) HOT 1
- Parse error when use avatar sticker
- Unhandled rejection TypeError: Cannot read properties of undefined (reading 'messageCount') HOT 1
- how do I make the bot wait for a reply HOT 2
- Recieve messages HOT 1
- Issue with Login: Error retrieving userID HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-chat-api.