php - How to post photo to Timeline Photos via Facebook Graph API? -


i'm using facebook graph api 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 upload xxxxxxx album (base on facebook app_id).

everybody has solution post photo on timeline photos?

just take there:

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

you not using right api call if want able post picture in specific album.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -