XFBML.ProfilePic का उपयोग कैसे करें

वोट
0

मैं एक Facebook उपयोगकर्ता के प्रोफ़ाइल चित्र XFBML का उपयोग कर प्रदर्शित करने के लिए कोशिश कर रहा हूँ। मैं निम्नलिखित कोड का उपयोग कर रहा हूँ:

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

मैं तत्व की uid विशेषता कैसे सेट करूँ? (टिप्पणी की लाइन काम नहीं करता है)

16/02/2009 को 21:41
का स्रोत उपयोगकर्ता
अन्य भाषाओं में...                            


1 जवाब

वोट
3

ProfilePic को यह प्रसंस्करण के लिए भेजने से पहले विशेषता सेट करें:

var container = document.getElementById("profilePicture");
container.setAttribute("uid", userId);
var profilePic = new FB.XFBML.ProfilePic(container);
FB.XFBML.Host.addElement(profilePic);
26/02/2009 को 23:58
का स्रोत उपयोगकर्ता

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