Facebook webhook to Node-RED - ibm-cloud

I want to verify a Facebook webhook to Node-RED. The node details in the course do not match those in Bluemix Node-RED.
Course:
Bluemix Node-RED:
Am I using the wrong Node-RED node?

The top picture shows a debug node, the bottom picture shows a http response node, which one does the course at the point you are, ask you to use?

take a look at the attached, just paste a url like: /chatbot, then paste it on webhook(https://yourdomain.mybluemix.net/chatbot) and it works

Related

Where to put Bluemix Service documentation

I have created a Bluemix Service and can see it in my Bluemix dashboard, under Services.
When I go into my service, under the Manage tab, there is a button, "Open my-service-name Dashboard". When I click on it, I am taken to a page saying
This page contains the following errors:
error on line 1 at column 1: Document is empty Below is a rendering of
the page up to the first error.
It seems like I need to provide a documentation. But where do I put that in my source code directory?
The service metadata has a field documentationURL that can be used to point to the related documentation. This and other fields like the dashboard_client (for the service dashboard) are documented in the Cloud Foundry Catalog Metadata in the section on Services Metadata Fields.
To see a working example you can take a look at my Pseudo Broker/Service sample that I wrote for Bluemix. It has the bare minimum code and step-by-step instructions.

chrome dev tools network request name

Does anyone know of a way to display the full network resource request url instead of just the last part of it in chrome dev tools plz?
Right now it's showing me only the last part of the resource url: 1 or 2 for requests to /users/1 and /users/2. Since I have multiple resource urls ending in /:id, this get confusing very fast.
When I hover the name I get a title with the full request url. It would be nice to be able to see it without needing to hover over each separate request.
Thanks!
There is a button in view:
which enables larger request rows.
so you get this:
It seems View button is moved since latest version of Chrome

Embed API demo not working

I tried using this Google Analytics Embed API Demo, of course with my own ClientID (49803909):
Embed API Demo
However, instead of the graphic I should be getting, I only get a blank page. I did follow the instructions quite carefully. Does this work for others? Any ideas of what may be wrong?
PS: Here's the screenshot of where I am getting the id from. #DaImTo was right that just 49803909 wasn't it, but I also tried to full long string and even the service id below (the one with #), all to the same effect (a blank screen). So, is this the wrong screen then?
I think #DalmTo is correct. You're most likely using one of the many other Google Analytics IDs instead of using a valid Client ID (which is not Google Analytics-specific, it's a general ID used for accessing Google APIs), and you're probably getting errors logged to the JavaScript console that say something to that affect.
If you follow the steps in this Embed API Developer Guide, you'll see instructions on how to create a Client ID to use with the Embed API.

how to enable https in my facebook app

i created an app and set my web URL which is https://www.mysite.com but i keep getting a message from Facebook's comments plugin in the little yellow box saying "warning: cant find http://www.mysite.com"
the plugin is working great and i can see comments and even share and like.
how can i fix that?
here is a print screen:
I am adding screen shot of one of my app, you can follow these screen shot:
Make sure to disable Sandbox mode and you should fill required URL as shown below.
problem found. we have a loadbalancer that causes that in the inner server he sees itself as http and in the outer is actually https. i had to manually add the "s" to the output.
thx for all the help!

Heroku - Created a facebook app with Node.js which gives type error

I am trying to create a facebook application and this is my first time. I read several articles on how to create one and I created an application from this page https://developers.facebook.com/apps. When I clicked on Go to App from facebook right after I created it. It is showing this error
I have tried to look on Heroku dev center for same type of problem to resolve problem on my own I couldn't find any solution. When I do curl -v https://tranquil-oasis-2533.herokuapp.com it says HTTP/1.1 500 Internal Server Error. This is the output from heroku logs http://pastebin.com/0qdueiZE. Somebody please help me.
This appears to be an issue with the faceplate module. It is described here: https://github.com/heroku/faceplate/pull/20
You have two options to get around the issue:
Propose a fix to faceplate that works within the constraints of the Facebook application security here: https://developers.facebook.com/docs/ApplicationSecurity/
Take your Facebook app out of sandbox mode.
This seems to be issue with sandbox mode. Disable sandbox mode. Here is the steps how you can do it.
Go to https://developers.facebook.com/apps.
click "Edit Settings"
and selected radio button "disabled" for the "Sanbox Mode" under "basic info".
Hope this helps.
The error message points to what needs to be known
Cannot read property 'name' of undefined
<title><%= app.name %></title>
app is undefined. Probably want to check your web.js file to see what app is up to.
And ensure you have the latest node template for Heroku.
https://github.com/heroku/facebook-template-nodejs
My guess is that you aren't passing app as a local to the index.ejs template. If you're using Express, console.log(res.locals) before you res.render index.ejs. Is app in the logged output?