简体   繁体   中英

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#. 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". How do I get the post to show that it came from the group and not my personal ID?

That is not even possible directly in the group, without the 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.

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. With that Token, you can post as the Page.

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