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条回答

      报告相同问题?

      悬赏问题

      • ¥100 AZURE创建地图类webapp
      • ¥20 51单片机实训实验报告
      • ¥15 C# 循环读写数据中途突然变慢
      • ¥15 用Java实现双端队列
      • ¥150 ID3决策树实现分类
      • ¥15 multisim10安装后,找不到NI License Manager的程序来安装许可证
      • ¥15 C++银行卡系统 Help!
      • ¥15 R语言数据分析的相关问题
      • ¥15 模型导入SP后贴图纹理只有一个,拆了四张UV的,怎么解决?
      • ¥15 检索带order by 非常慢