Comments (4)
This is generally expected to stay constant? I don't really understand the question.
If B sends you a message, you are the receiver.
If you send B a message, B is the receiver.
Do you need more information than that?
from facebook-chat-api.
I have configured the account A using this library. So whenever A receive a message from B or C, i get the sender_name ( the person who has sent the message to A) . But when A sent a message to B or C from facebook itself or from a messenger, the api response does not have any reference about B's name. it just gives B unique id in facebook. Is there any way to get B's name as well
from facebook-chat-api.
Ah, I assume you're using the selfListen
option set to true
then. You can always get information about a userID
, including the full name, with a call to api.getUserInfo()
.
I hope that helps.
from facebook-chat-api.
I'm marking this as resolved, please reopen the issue if you have further problems with this. 😄
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.