Hogyan kell használni XFBML.ProfilePic

szavazat
0

Próbálom megjelenítéséhez Facebook felhasználói profilt képet a XFBML. Én a következő kódot:

var container = document.getElementById(profilePicture);
var profilePic = new FB.XFBML.ProfilePic(container);
//profilePic.setAttribute(uid, userId);
FB.XFBML.Host.addElement(profilePic);

Hogyan lehet beállítani a uid attribútum az elem? (A megjegyzést vonal nem működik)

A kérdést 16/02/2009 21:41
a forrás felhasználó
Más nyelveken...                            


1 válasz

szavazat
3

Attribútumot beállítani, mielőtt elküldené ProfilePic feldolgozásra:

var container = document.getElementById("profilePicture");
container.setAttribute("uid", userId);
var profilePic = new FB.XFBML.ProfilePic(container);
FB.XFBML.Host.addElement(profilePic);
Válaszolt 26/02/2009 23:58
a forrás felhasználó

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more