简体   繁体   English

Facebook SDK:发布到页面作为页面 ID

[英]Facebook SDK: Post to a page as the page ID

I am able to post to one of my own pages in Facebook using the Facebook SDK and Winforms and C#.我可以使用 Facebook SDK、Winforms 和 C# 发布到我自己的 Facebook 页面之一。 However, when I post the photo or message or whatever, it shows that the item was posted by "Jim Tyminski" and not the page name "ListWithFreedom.com".但是,当我发布照片或消息或其他任何内容时,它显示该项目是由“Jim Tyminski”而不是页面名称“ListWithFreedom.com”发布的。 How do I get the post to show that it came from the group and not my personal ID?如何让帖子显示它来自群组而不是我的个人 ID?

That is not even possible directly in the group, without the API.如果没有 API,这甚至无法直接在组中进行。 You can only post as a page (with the correct permissions and Access Token) or as a User (with the User Access Token).您只能作为页面(使用正确的权限和访问令牌)或用户(使用用户访问令牌)发布。

Edit: Posting to a Page as the Page is possible, of course, you just need a Page Access Token instead of the User Access Token.编辑:作为页面发布到页面是可能的,当然,您只需要一个页面访问令牌而不是用户访问令牌。 That´s the only Token where you actually have to deal with Tokens, usually the handling is done by the SDKs out there.这是您实际必须处理令牌的唯一令牌,通常处理由那里的 SDK 完成。

Some useful Links:一些有用的链接:

In general, you have to authorize the User with the " manage_pages " permission, and make an API call to " /me/accounts " to get the Page Access Token for your specific Page.通常,您必须使用“ manage_pages ”权限授权用户,并对“ /me/accounts ”进行API调用以获取特定页面的页面访问令牌。 With that Token, you can post as the Page.使用该令牌,您可以作为主页发布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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