hi i am using the alloy framework and i succesfully was able to show the profile picture from FB, now i would like to show the usersname from FB.
in my alloy.js i have the following declared:
Alloy.Globals.Facebook = require('facebook'); Alloy.Globals.fbUserPicture = 'https://graph.facebook.com/'+ Ti.Facebook.uid + '/picture?type=large'; Alloy.Globals.fbUserName = 'https://graph.facebook.com/'+ Ti.Facebook.uid + '/name';
in my profile.xml i have a label with id: <Label id="profileName"></Label>
and in my profile.tss i have the following: "#profilePic": { image: Alloy.Globals.fbUserPicture, width:125, height:125, top:25, left: 25 }
"#profileName": { text: Alloy.Globals.fbUserName, top:25, right: 65 }
the thing is that is does not show me the usersname but i get a link from fb, so how do i show the usersname. what am i doing wrong...