I've integrated a Facebook share button into my site. The client now wishes to add a prepopulated message when a user presses the share button, so this can be written to the users timeline. (If they agree).
I've checked out the share button on facebook:
https://developers.facebook.com/docs/plugins/share-button/
But I cant find anywhere how to add a custom message to the share button?
You'll need to add facebooks OG tags to the head of your page, Facebook will read these and add the content. You can add a custom title, image and description.
If you need to add a custom title, image or description per page then you'll need to use a php constant to define these on a per-page basis.
With something like:
Then the meta tags would look like this.
Check out the docs here: