简体   繁体   中英

Facebook API: Uploading a cover photo to a Facebook page

I'm trying to use the Facebook API upload a photo to the cover photo gallery (or any other gallery for that matter) on my page.

Unfortunately, I'm receiving a 403 Permission Denied error as such:

java.io.IOException: Server returned HTTP response code: 403 for URL: https://graph.facebook.com/540282086069155/photos?url=http%3A%2F%2Fflyh2.com%2Fstatic%2Fimages%2Fflyh2-logo.png&app_id=643252662393755&method=POST&no_story=true&access_token=CAAJJCO5xW5sBAACKZBGjh9x8RfLg7krbjBA7hp0ZCEd3ZCcKvWs9NbmY3cQZBVIn3TZAcLaCZCRpYXiOU8m63lvXZBaMSWda5xOaAvbTVw6ZB9CTc8O00WGaTRZBKNYTPDqOHl35VMzNeoBNiTo251VZA2E4ZBUqouJhKTaMXyVXZAkNNg1wQ5St5SCkFn8lVmDy9oAZD

{
   "error": {
      "message": "(#220) Application does not have the capability to make this API call",
      "type": "OAuthException",
      "code": 220
   }
}

When doing the OAuth, I requested the following permissions:

"manage_pages, publish_stream, photo_upload, publish_actions"

Interestingly enough, I can access the page and change the cover photo, but I can't access the album and upload to it.

我有同样的问题,尝试在您的权限中添加user_photos;)

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