简体   繁体   中英

Post link to Facebook page as page admin

I'm trying to post a link to the wall of a Facebook page as the page admin , however it's not working correctly. It posts the link as me rather than as the page admin, and it shows up under "Recent Posts by Others" rather than the wall.

var client = new FacebookClient(post.Site.FacebookAccessToken);
dynamic result = client.Post("/" + pageId + "/feed", new {
    message = post.Message,
    link = post.Url
});

My access token has publish_stream and manage_pages permissions. The authorized Facebook account is an admin for the page. Is there some method for impersonating the page admin that I'm not doing correctly?

如果您希望帖子以“页面形式”显示,则需要使用页面访问令牌 -如果您使用用户访问令牌,则行为取决于Facebook页面管理界面中的某些设置,并且可能会也可能不会作为页面发布取决于这些设置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM