Reputation: 56
My goal is to post to my FB page (/{page-id}/feed
) a link to a website, choosing the image to show instead of the picture scraped automatically from the web page. The image I'd like to show is not in the web page, so I cannot use the og:image
tag.
I'm using the current API (v2.9) and this is what I've tried so far in the Graph API Explorer:
picture
parameter, that does not work as expected (it doesn't replace the automatic image)picture
and link
parameters both pointing to the image url, with an action button
, but it must have the same url used for the link
parameterchild_attachments
parameter, but I need at least 2 images and the final result is quite different, toolink
parameter, but thy were removed in the 2.9 API What am I missing?
Upvotes: 3
Views: 3728
Reputation: 180
For information regarding why it isn't working. I assume they removed it to force users to add it to their website like Twitter did with their Twitter cards and maybe to stop impersonating pages.
https://developers.facebook.com/docs/sharing/reference/feed-dialog#deprecated-params
Upvotes: 4