It is not possible to change/prefill the message text in the FB.ui dialogs, and it is not allowed according to the platform policy. The message must be 100% user generated and prefilling is not allowed:
https://developers.facebook.com/policy/
2.3: Ensure that all content in the user message parameter is entered by the user. Don’t pre-fill. This includes posts, messages, comments, and captions.
The only possibility to fill the message parameter is to use an API call to /me/feed
with the publish_actions
permission - but still, you are not allowed to prefill and publish_actions
has to go through a review process. Facebook will never approve it if you prefill, of course.