Post on fan page with facebook Graph api

Asked

Viewed 925 times

0

I made a script in which automatically put on a fan page on facebook, the script works, but the post is only visible to the user who posted (who is the admin of the fan page), in the login I am asking the permissions below:

$loginUrl = $facebook->getLoginUrl(array('scope'=>'manage_pages,publish_stream'));

And I’m posting with the following code:

$args = array(
 'access_token' => $page_info['access_token'],
 'link' => 'http://www.sitelink.com.br/alguma-coisa',
 'method' => 'post'
);

$facebook->api("/99999999999/feed","post",$args);

Does anyone know if in the login I have to ask for some extra permission to appear as public posts?

I have to set up something else in the Facebook app at Velopers?

  • The app was still in development, so only the admin viewed the posts. I put the app live and it works normally. Thanks for the help.

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.