duanci19881003 2016-08-26 09:13
浏览 38
已采纳

Facebook应用程序发布为页面

I have a Facebook Page with some friend, our fans send us texts we have to post on our page.

At the moment we are using a Google Form, it's good but copy paste is very boring...

So I coded a little website where our fans could post texts and with an administration interface, we can validate them and it post it automatically on our Facebook Page (as the page).

I requested these permissions : 'manage_pages', 'publish_pages' (No problem)

But when I click to validate a text and post it as a page I have this error : "(#200) The user hasn't authorized the application to perform this action"

My code :

public function update($id, UpdatePostRequest $request, LaravelFacebookSdk $fb)
{
    $post = $this->postRepository->findWithoutFail($id);

    if (empty($post)) {
        Flash::error('Askip non trouvé');

        return redirect(route('posts.index'));
    }

    $post = $this->postRepository->update($request->all(), $id);

    Flash::success('Mis à jour avec succès.');

    $user = User::find(Auth::id());
    if($request['state']) {

        $fb->post('/AskipNamur/feed', ['message' => 'test'], $user->fb);
    }

    //return redirect(route('posts.index'));
}

$user->fb is my access token

I read that I have to publish our Facebook app in order to post as a Page, I tried but I had this response :

You don’t need any extended permissions for an app that you admin. App admins, and any account listed as a ‘role’ in the App Settings page, can access the permissions without submitting for review. https://developers.facebook.com/docs/apps/security You only need to submit for review if the users/customers of your app are using the permissions to enhance their experience in-app

I'm using Laravel 5.2 and LaravelFacebookSDK ( https://github.com/SammyK/LaravelFacebookSdk )

  • 写回答

1条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥170 如图所示配置eNSP
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果