2
votes

I'm using facebook graph API to upload photo on Facebook. => That's OK.

$response = (new FacebookRequest(
          $session, 'POST', '/me/photos', array(
            'source' => new CURLFile('upload/bg-design.jpg', 'image/png'),
            'message' => 'Hello world',
            'caption'=> 'Day la caption'
          )
        ))->execute()->getGraphObject();

But it's always upload to XXXXXXX album (base on facebook app_ID).

Everybody has solution to post photo on Timeline Photos?

1

1 Answers

3
votes

Just take a look there:

https://developers.facebook.com/docs/graph-api/reference/v2.3/album/photos#publish

You are not using the right api call currently if you want to be able to post your picture in a specific album.