node-red-contrib-viseo | Node-RED nodes OpenSourced by VISEO Technologies | Stream Processing library
kandi X-RAY | node-red-contrib-viseo Summary
kandi X-RAY | node-red-contrib-viseo Summary
Node-RED nodes OpenSourced by VISEO Technologies
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-red-contrib-viseo
node-red-contrib-viseo Key Features
node-red-contrib-viseo Examples and Code Snippets
Community Discussions
Trending Discussions on node-red-contrib-viseo
QUESTION
I have created Facebook Messenger bots to answer to people talking to my Facebook Pages with a wrapper of Microsoft Bot Framework.
When a human talk to my bot it has a recipient address (composed of multiple fields) used to reply.
Now I'd like my bot to talk to other Facebook page (like a human using a Messenger client)
Questions:
- How can I find the "chat" address of a random user that do not already talk to my page/bot ? (It seems a same user has different address when it talk to multiple bots).
- How can I use my bot to send messages to other's Facebook Page. To do that I assume the bot has to discover the recipient address of the human or bot behind that page ?
(May be the answer is to use an implementation of a Messenger Client in NodeJS ?)
...ANSWER
Answered 2017-Sep-04 at 11:33For Facebook Messenger:
User "chat address", that is to say "Id" property of your Recipient, depends on every bot and cannot be guessed (it is a Page Scoped ID), you have to talk to the bot first. It's a question of security / anti-spam
Same problem to start a conversation with another page: you cannot guess the ID of the human/bot to which you will be talking to.
So currently it is not possible to do what you are trying to do.
Maybe you should have a look directly to Facebook APIs to see if you can at least do your 2nd point. For the 1st one, I found no way
QUESTION
- I made a Sign-In Card using the Microsoft Bot Framework.
- The Sign-In button OpenURL to Login of Microsoft Graph
- The user write it's credential
- A message ask him to accept the Microsoft App
- Then it is redirected to a thanks page (the access token si forwarded to my bot)
Issue:
- Using Messenger Webview it breaks at 5.)
- Using Desktop Messenger it works.
- Using Mobile Chrome (with the Sign-In URL copy/past) it works
The webview display the steps in the microsoft domain but the redirection to my server fails.
Is there kind of limitation with Messenger WebView ? Is there a Best Practice to sign-in throught Messenger ?
EDIT:
The code is located in a Node-RED node. The redirect is a standard Node-RED (aka ExpressJS) end point The card construction relies on Microsoft Bot Builder v3.0
...ANSWER
Answered 2017-Jun-22 at 09:06When building a Sign-In Card with Microsoft Graph authentication you have to add two platforms: - Web Platform - Native Platform
Set the Callback URL to the Web Platform and leave native platform as is with no custom redirection.
It should now works with Messenger App and Web App
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-red-contrib-viseo
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page