开发者

Can a Facebook application impersonate a Facebook fan page?

I've just spent all day going through broken examples, outdated code, poor documentation and frustration, so bear with me. I need to do a sanity check here. I have this:

  • A personal Facebook account, as in me
  • A Facebook fan page created under above account, called "JungleDragon"
  • A Facebook application called "JungleDragon"

What I want is to automatically post updates to the wall of the fan page. The updates should not be posted by me, rather by the page itself.

I have gotten this to work (for a bit):

Can a Facebook application impersonate a Facebook fan page?

The second entry is a manual entry. The first one is automated via this code in PHP making use of the Facebook PHP SDK:

require_once 'src/facebook.php';
$facebook = new Facebook("", "");
$facebook->setAccessToken("");

try{
$facebook->api('/132114073492501/feed', 'POST', array('message' => 'test message'));
}catch(Exception $o ){
print_r($o);
}

I have left the keys out of the example. The thing that bugs me is that the automated post is created "via JungleDragon", which is the app, not the page itself. This app has no use for end-users so my question is "how to really post to the wall as the page, not the app?"

Please don't send me t开发者_开发知识库o some general graph api page. I've been there and they suck.


Yes, Check out the manage_page permission.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜