Graph Api to send message to a non-friend on facebook
SHORT Answer
No you can't
Long Answer
If the conversation is between two Facebook Users :
No you can't use Graph API, because you won't get the mailbox permissions.
If you don't need to use the GRAPH API, consider the SEND Dialog, then it should be possible
https://developers.facebook.com/docs/sharing/reference/send-dialog
If the conversation is between a Facebook Page and a Facebook User
You can send only a message if the Facebook User initiated at first the chat with the Facebook Page.
As you noticed, none of these meet your Use case :)
I hope this answers your concern
Sending customized Facebook message using Graph API for inviting friends to a website
Are you using Javascript or PHP to interact with facebook?
Either way you are going to want to use the 'link' parameter in the post.
Here is a php example which also posts a picture. If you need a Javascript example let me know.
Hope this helps!
$attachment = array(
'message' => $customMessage,
'link' => $MY_LINK_HERE,
'source' => $source,
'name' => $blogTitle,
'picture' => $picture,
'caption' => 'caption of the link',
'description' => ''
);
$result = $facebook->api('/'.$uid.'/feed?access_token='.$access, 'post', $attachment);
Related Topics
Symfony 3.4 Use View Inside My Bundle
Remove .PHP Extension (Explicitly Written) for Friendly Url
Destroy or Unset Session When User Close the Browser Without Clicking on Logout
Mysql_Real_Escape_String VS Addslashes
Angularjs Upload Multiple Files with Formdata API
PHP Include Error Not Findind the Path
How to Get Xdebug Var_Dump to Show Full Object/Array
Memcached VS Apc Which One Should I Choose
Mechanisms for Tracking Db Schema Changes
Magento - Retrieve Products with a Specific Attribute Value
PHP Read_Exif_Data and Adjust Orientation
Remove Duplicate from String in PHP
How to Use Open Id as Login System