Digital Marketing Facebook Marketing API . 1 year ago

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

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

0 views   1   0 likes   0 shares Tuteehub forum manpreet 1 answers
_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
tuteehub_quiz
Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

profilepic.png

Tuteehub forum answer Answers (1)


profilepic.png
manpreet Tuteehub forum best answer Best Answer 1 year 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.
0 views   0 shares
Related Tags