Wednesday 25 May 2011

Facebook Post wall messages graph api

//privac = EVERYONE, CUSTOM, ALL_FRIENDS, NETWORKS_FRIENDS, FRIENDS_OF_FRIENDS

    FB.api('/me/feed', 'post', {
        name : title,
        message : title,
        description : desc,
        caption : title,
        picture : 'http://axiomtest.i3dnow.com/sam.jpg',
        actions: [
                { name: "Create from this", link: create_link }
            ],
        privacy:'{"value": "'+privac+'"}',
        link : link_url
    }, function( response )
    {
        /* SaveData(response.id, value); */
        update_axiomdata(response.id, lastinsert_id);
    });

1 comment: