How to post a photo to page wall as page's admin role via Graph API

Digital Marketing Facebook Marketing API 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating
_x000D_ _x000D_ I use node.js to handle Graph API, and post feed, link normally on the Facebook page wall. But if I post a photo to page, it cannot use page role. The photo will be posted with my Facebook user, and shown on the other side. So, how can I post a photo to page wall with page role via Graph API -- POST https://graph.facebook.com/#{page_id}/photos?access_token=#{access_token} With Parameters { message: 'the message' url: 'the image url' } OR use multipart/form-data { message: 'the message' source: 'post file' } same result, help please. The access token has manage_pages, public_stream permissions. Useful feed post POST https://graph.facebook.com/#{page_id}/feed?access_token=#{access_token} { message: 'something interesting' } this will show on page's wall as page role

Posted on 16 Aug 2022, this text provides information on Facebook Marketing API related to Digital Marketing. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago
_x000D_ If you want to act as the Facebook Page itself, you will need to pass an access token for it. I put details on that in here: https://stackoverflow.com/a/16576107/183880 It's for PHP, but the basic concept should get you where you need to go.

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.