I would like to post a photo on my Facebook page timeline through the Graph API. My node setup is based and written in coffeescript. My current implementation is this (error handling):
sendImageToFacebookTimeline = (user, message, imageURL, callback)-> url = "https://graph.facebook.com/#{pageID}/photos" params = access_token: user.accessToken url: imageURL message: message request.post({url: url, qs: params}, (err, res, body)-> body = JSON.parse(body) callback(body.id) )
This successfully sends the photo to my page. But instead of appearing on the timeline, it appears in the "Photo PAGE".
How to send a message to the chronicle?
EDIT: I found out that by sending to / page _id / feed with the option "picture", you can send a photo to the chronicle. This displays just like the og: image and the view looks like a link.
EDIT 2: If you upload an album, it will appear on the timeline. I created an album and am trying to publish it. But the API does not seem to accept the source URL when posting to / album_id / photos.
source share