简体   繁体   English

Facebook-sdk给出了“(#200)用户没有授权应用程序执行此操作”在带有codeigniter的自动帖子上

[英]Facebook-sdk Gives “(#200) The user hasn't authorized the application to perform this action” on auto post with codeigniter

Here is the my code.. 这是我的代码..

public function autopost(){

$this->load->library('facebook', array(
  'appId' => '15704450865*****',
  'secret' => '9ef9e145108f7331d677209b62c*****'
  ));

$user = $this->facebook->getUser();
$access_token = $this->facebook->getAccessToken();
$params = array(
  "access_token" => $access_token ,
  "message" => "my message goes here.",
  "link" => "http://www.sakkigoni.com/",
 // "picture" => "http://i.imgur.com/lHkOsiH.png",
  "name" => "How to Auto Post on Facebook with PHP",
  "caption" => "www.pontikis.net",
  "description" => " description goes here."
  );

if($user){
  try {

    $ret = $this->facebook->api('/me/feed', 'POST', $params);
    echo 'Successfully posted to Facebook Personal Profile';
  } catch(Exception $e) {
    echo $e->getMessage();
  }
}else{
  echo "<a href='".$this->facebook->getLoginUrl(array('scope'=>'email, publish_actions'))."'>Login with Facebook</a>";
}

} }

when I run the above code and login on facebook to auto post.Only admin user of app is authorized to post in timeline but other user shows this error 当我运行上面的代码并在Facebook上登录自动发布。只有管理员用户的应用程序被授权在时间轴上发布,但其他用户显示此错误

"(#200) The user hasn't authorized the application to perform this action"

i have tried these too but doesn't work in me 我也试过这些,但对我不起作用

same #200 error 同样#200错误

same #200 error 同样#200错误

If it works for the App admin, but not for anyone else, you probably forgot to send publish_actions through review: https://developers.facebook.com/docs/facebook-login/review 如果它适用于App管理员,但不适用于其他任何人,您可能忘记通过审核发送publish_actionshttps//developers.facebook.com/docs/facebook-login/review

Also, autoposting is not allowed and the message must be 100% user generated. 此外,不允许自动配置,并且消息必须是100%用户生成的。 You MUST read the platform policy before creating any App: https://developers.facebook.com/policy/ 您必须在创建任何应用程序之前阅读平台策略: https//developers.facebook.com/policy/

In other words: You will never get publish_actions approved for autoposting and a predefined message. 换句话说:您永远不会获得批准用于自动publish_actions和预定义消息的publish_actions

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 (#200) 用户尚未授权应用程序执行此操作 facebook graph api php codeigniter - Error (#200) The user hasn't authorized the application to perform this action facebook graph api php codeigniter Php Post Facebook Graph返回错误:(#200)用户未授权应用程序执行此操作 - Php Post Facebook Graph returned an error: (#200) The user hasn't authorized the application to perform this action 错误:#200用户未授权应用程序执行此操作 - Error:#200 The user hasn't authorized the application to perform this action 未捕获的OAuthException:(#200)用户尚未授权应用程序执行此操作 - Uncaught OAuthException: (#200) The user hasn't authorized the application to perform this action 用户尚未授权应用程序执行此操作(#200) - the user hasn't authorized the application to perform this action(#200) 错误(#200)用户未授权应用程序执行此操作 - Error (#200) The user hasn't authorized the application to perform this action php(#200)用户未授权应用程序执行此操作 - php (#200) The user hasn't authorized the application to perform this action Facebook错误(#200)用户未授权应用程序执行此操作(PHP) - Facebook Error (#200) The user hasn't authorized the application to perform this action (PHP) 在Facebook Wal上发布时,如何解决“(#200)用户未授权应用程序执行此操作”错误 - How to fix “(#200) The user hasn't authorized the application to perform this action” error while posting on facebook wal (#200)用户未授权应用程序执行此操作facebook php api错误? - (#200) The user hasn't authorized the application to perform this action facebook php api error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM