Service data not getting passed to javascript variable
I've done this in other parts of my app, but for some reason, it's not working with a new service.
Simply, I'm calling a service to retrieve a user's facebook friends. I want to put that information into a javascript variable, so I can access/parse later on via json.
For some reason, the javascript variable isn't getting created and set. I know the facebook service is working as I fill in a bunch of the data on the screen and I see it fine (i see a list of friends.) But I get a "friendData is not defined" error when I run the page, and the variable indeed is not set.
Any ideas? See attached screenshots for how I'm retrieving the data and the javascript.