i feel like this should be really easy. i am feeding the properties property of the FB.ui an array that contains json objects. how can i loop through and output these objects with in the properties brackets?
this is the correct syntax:
properties: [
{ text: 'value1', href: 'http://developers.facebook.com/'},
{ text: 'value1', href: 'http://developers.facebook.com/'}
]
so far i can do this:
properties: [
myArray[0],
myArray[1]
]
and that outputs correctly, but what I want to do is dynamically output the array since it will often be a different size. i have tried for in loops and regular for loops, but i can't use those inside these brackets. probably a super easy answer, please help.