tschellenbach / Django-facebook

Facebook open graph api implementation using the Django web framework in python

Home Page:http://www.mellowmorning.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

formElement.submit is not a function

johnsonc opened this issue · comments

Embedded the login form into a template, login popup returns valid accessTokens and status shows connected.
However the per-popup screen keeps waiting and i do not go into the main screen.

browser console:
Uncaught TypeError: formElement.submit is not a function
at VM6317 facebook.js:74
at v.__wrapper (all.js:90)
at all.js:87
at Object.la [as _xdRecv] (all.js:112)
at all.js:112
at Object.ra [as onMessage] (all.js:85)
at all.js:75
at all.js:36
at all.js:36

I think this is because formElement is pointing to the window, which does not have a submit action. I think the placement of the embeddable code is the culprit AFAICT.

this help
add document.body.appendChild(formElement);