can i like fan page with appliction?
My question is if i can like a fan page with some graph api or something else? 
here is my code:

    $facebook->api('[fanpage_id]/likes', 'post', 
    array('access_token' => $_SESSION['fb_192401920810408_access_token']));

and if i can do it by javascript SDK without the likebox?
also i gave the publish_stream premission.

thank you :)

can i like fan page with appliction?
===

My question is if i can like a fan page with some graph api or something else? 
here is my code:

    $facebook->api('[fanpage_id]/likes', 'post', 
    array('access_token' => $_SESSION['fb_192401920810408_access_token']));

and if i can do it by javascript SDK without the likebox?
also i gave the publish_stream premission.

thank you :)
