I have an json reponse from facebook like this picture.
This is the way i tried to access the likes count
data.posts.data.likes.count but it kept showing undefined error and i also tried to access comments object like this
data.posts.data.comments.length it showed the same error. I am stuck here anyone could help me out?
This is my used code to get json
var fburl = "https://graph.facebook.com/128618520547487/?fields=posts.fields(picture,comments,likes,source,link,message)&access_token=CAACEdEose0cBAFOZAdI3zIOmKwkCi2tUZCAl2tpuIyh3WuE5B4njTviyzk4msgZCnKBVTNuXh2FQTf4XkfatgVHYer43TTw2kqV2vxHsjNbjbjiUPKToBrCpUP6ZBhVbr00GQTqjcCynzdGHHObe8OwYK7UMXLcZD"; var data; $('.home-blog').append('
Originally posted 2013-11-09 20:01:53.