messenger

Is Facebook Messenger PSID PageScope constant for User

纵饮孤独 提交于 2020-02-04 03:25:33
问题 I am developing a chatbot. I want to ping the FB user from my server that requires PSID. I obtain the PSID using the Account Linking API. Is there any way to link User email and PSID. As we have used email as the unique parameter to recognize user. Incase the user logs out, does the PSID change on the next Login. Can I take the PSID to be constant for multiple logins. 回答1: After some amount of research I discovered PSID ( PageScope User ID ) is constant for a user and corresponding Page. For

How to auto scroll top to bottom in react for messenger?

天涯浪子 提交于 2020-02-02 16:16:10
问题 How to auto scroll top to bottom in react for messenger or others? class MessageBox extends Component { componentDidMount() { this.scrollToBottom(); } componentDidUpdate() { this.scrollToBottom(); } scrollToBottom = () => { this.messagesEnd.scrollIntoView({ behavior: "smooth" }); } render() { return ( <div className="yourClass"> <div className="chat-textarea-box"> <MessageBox /> </div> <div ref={(el) => { this.messagesEnd = el; }}></div> </div> ) } } Please provide me better solutions 回答1: u

Suddenly, pages_messaging_subscriptions permission is required

℡╲_俬逩灬. 提交于 2020-01-14 07:38:09
问题 I have a simple message bot that was set up according to the Messenger Platform guide. It has been working fine for the last few months, with about half a dozen messages sent a day. I have not touched it at all, but suddenly, sending a message, ie calling https://graph.facebook.com/v2.6/me/messages?access_token=... , returns: {"message":"(#230) Requires pages_messaging_subscriptions permission to manage the object","type":"OAuthException","code":230,"fbtrace_id":"DVs...."} This was out of the

Viber messenger API [closed]

a 夏天 提交于 2020-01-10 11:48:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for a library to do requests to Viber messenger server. I need to: send messages to users; check sent messages delivery status; check that a user has Viber account. I know that Viber has no open API for developers, but maybe someone has experience with reverse engeneering of Viber protocol or some

How to display an emoji in a Facebook Messenger bot?

南楼画角 提交于 2020-01-07 05:12:28
问题 I'm trying to display an emoji in a Facebook Messenger bot made in NodeJS but I cannot figure out how to turn chars like http://apps.timwhitlock.info/unicode/inspect/hex/1F382 into a string I could send via the API. Many thanks for any help. 回答1: Some of the emojis are not supported. You will get snowflakes if you try this decodeURI('\u2744') whereas, decodeURI('\uF382') is not working. Thanks Sriram 来源: https://stackoverflow.com/questions/41465642/how-to-display-an-emoji-in-a-facebook

Use line wrap in JTextArea that wraps the line to a specific position in JTextArea

纵然是瞬间 提交于 2020-01-06 06:35:09
问题 I have a JTextArea that picks up text from another JTextArea and displays that text as seen in this image: I want the JTextArea to wrap the line from where rahul is written as in previous image. And below is the code from my smaller JTextArea from which the text is shown in the larger JTextArea . SimpleDateFormat sdf=new SimpleDateFormat("HH:mm"); String str=MainFrame.un+" ("+sdf.format(new Date())+") :"+txtSend.getText(); DataServices.send(runm+":"+str); // for sending this to its socket