It took me three days to figure out the cause of the error, but I finally tracked it down. The error is caused because in the json file, the client id is not being enclosed in quotation marks. In the json file that is created by the tutorial, on line 10, you will find the client id. The response entered is a green color instead of a blue color because the quotation marks are not there. When you add the quotation marks, the response becomes green and you can move forward with the tutorial. Any time you save the file with a change, the quotation marks are removed and have to be re-added.
This bug is probably only specific to node.js projects.
@Teodor (tagged because you helped me out in the past with the Facebook Login API)
For example, I just added the data part (email and id) to the data api schema and clicked on save and the quotation marks were removed from the client_id on line 10.
I am not sure what they expect to be honest. I only know it works with the client_id enclosed in quotation marks and does not work without the quotation marks.
I thought initially it was because I had used v8.0 instead of v6.0 in the https://graph.facebook.com/v8.0/me URL, but regardless of which version used, the result is the same.
I was diving into this today as well and seeing the same error. Seems the client_id is not being passed in the query string although it is provided on the oauth action:
I believe it is a bug in the Wappler UI, it tries to auto detect the type. The client_id should be a string and not a number. Just edit the json directly and place quotes around the id.