我已经声明了 var:
var myid=mydata.id;
var imgpath="https://graph.facebook.com/<?=myid ?>/picture?type=small";
这给出了错误:
SyntaxError: unterminated string literal
var imgpath="https://graph.facebook.com/<br />`
我已经终止了它!米塔克在哪里?
全功能:
FB.api('/me?fields=movies,email', function(mydata) {
console.log(mydata.email);
console.log(mydata.id);
var myid=mydata.id;
var imgpath="https://graph.facebook.com/<?=myid ?>/picture?type=small";
//console.log(imgpath); ....}