Cannot call method 'createTimeline'


#1

function timeLine(PAdados,twttr){
twttr.widgets.createTimeline(PAdados.idApp,
document.getElementById(PAdados.idDom),
function (el) {
console.log(“Embedded a timeline.”,PAdados);
},
{
width: PAdados.w,
height: PAdados.h,
related: ‘benward,endform,brianellin’
});

};

PAdados = {“idApp”:“XXXXXXXXX”,idDom":“app_twitter”,“w”:712,“h”:200};
timeLine(PAdados,twttr);

return
Uncaught TypeError: Cannot call method ‘createTimeline’ of undefined


#2