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

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 宇视监控服务器无法登录
  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥15 DruidDataSource一直closing
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据