Facebook Error on login - Object(...) is not a function

Upon calling on login, the function returns some error message.

image

My code is just only this piece of code

image

Did you find the solution?
I’m having the same problem.