0
I’m creating a Facebook posting system and it’s all right, except for one thing. When I drop Facebook by the system I’m doing, some functions don’t work, no matter how much I pass the access token of the user or page.
I’m using a library Facebook SDK for Codeigniter:
//METODO, POINT, PARAMS, TOKEN
$query = $this->request('get', '/'.$idPage, null, $row->token);
What he returns to me is:
You must provide an access token.
I need it working, because the system will have the CRON
and need to make the posts on the page without the user being logged in
The permissions I’m getting are:
- manage_pages
- publish_pages
- pages_show_list
- public_profile
- publish_actions
- user_managed_groups
- user_posts
- user_likes
For all Facebook requests it is necessary to inform the
access_token
user. Simply store theaccess_token
and uses it in cron normally, there is no mystery in it. The fourth parameter ($row->token
) seems to be thetoken
, if it’s just take thetoken
stored and using it normally.– Inkeliz
@Inkeliz Yes, this variable is the token, but even passing the token to the
$this->request
it does not work. I tried to pass the user and the page and none works.– Alisson Acioli