duankuaiwang2706 2013-04-03 20:41
浏览 55
已采纳

代表非页面管理员的用户发布到Facebook页面

We are trying to build a facebook application that posts a message from a user to a facebook business page (which the user is NOT an admin of.) We need the post to be from the USER, not the page or the page admin. We are using the facebook PHP SDK and so far have accomplished getting the user's message to post to their own feed. (Using an App Access Token.) Though when we try to post the message to the facebook page (not owned by the user) we get this error:

Fatal error: Uncaught OAuthException: (#200) The user hasn't authorized the application to perform this action thrown in

Is it possible to post to a facebook page, not owned by the user on behalf of the user? We are admins on the facebook page, but if we post using the Page Access Token then the post is no longer authored by the user, but instead the facebook page or page admin.

Here is a snippet of our code to see how we're going about this:

Posting to user's feed as user (works)

$fbpage = "/$fbid/feed";

$attachment =  array(
'message' => $msg,'from' => array('name' => $name,'id' => $fbid)); 

$result = $facebook->api('/'.$fbpage.'?access_token='.$accesstoken, 'post', $attachment);

Posting to facebook page as user (doesn't work)

$fbpage = "/johnsjoint/feed";

$attachment =  array('message' => $msg,'from' => array('name' => $name,'id' => $fbid)); 

$result = $facebook->api('/'.$fbpage.'?access_token='.$accesstoken, 'post', $attachment);
  • 写回答

2条回答 默认 最新

  • douwen3127 2013-04-10 05:36
    关注

    After a lot of research, it appears that this isn't possible. If anyone knows otherwise, please post here.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度