in reply to Re^3: Post on FB (cron)
in thread Post on FB (cron)

Ah ha - got it! Turned out it was an expired access token, so getting a new one - this worked:
$fb->access_token( $access_token ); $fb->add_post() ->to(490559244324622) ->set_message('I like beer2.') ->publish;

Replies are listed 'Best First'.
Re^5: Post on FB (cron)
by Anonymous Monk on Mar 14, 2014 at 01:06 UTC
    I had originally posted:
    $groupid = 12345; $fb->add_post ->id($groupid) ->set_message('I like beer.') ->publish;
    However, the method is named "to," and not "id". I apologize for the error. As you showed (and included for future searchers), the code should be:
    $groupid = 12345; $fb->add_post ->to($groupid) ->set_message('I like beer.') ->publish;
    I would like to propose you look at Recipe 3 since it queries "me/accounts" to post as other accounts within your control.