getJSON select problem

getJSON select problem

Hi there.
First of all, I´m a newbie with all of this, so if this is a rookie mistake.. sorry.

Right now I am using the code below to fetch some messages, and it works great.
However, what I want to do is to fetch only the messages where "type" is set to "status" and nothing else.

How do I do that?

  1.     $.getJSON("https://graph.facebook.com/me/posts?fields=message,type&access_token=" + fbToken + "&callback=?" ,function(fbUser){
        document.getElementById('fbUserStatus').innerHTML = "" + fbUser.data[0].message + "";
        });



You can se the JSON iI´m dealing with here.

  1. ?({
    "data": [
    {
    "message": "Just some random message.",
    "type": "video",
    "id": "123456789_123456789123456789",
    "created_time": "2010-06-02T19:26:08+0000"
    },
    {
    "message": .. etc