I am building a Facebook tab page and would like to have a link to contact a user (the tab page owner, myself) via a simple HTML link so that a user clicks the ‘send a message’ link and it opens a dialog with the recipient already attached to the message. This was instead of my previous solution of a basic mailto: anchor link but realised it would be much better to integrate this functionality inside Facebook.
I looked at the Facebook Send Dialog (http://developers.facebook.com/docs/reference/dialogs/send/) which seemed like the perfect solution. On further inspection it seems it is more geared up for sending/sharing links rather than just a simple message. I tried removing the link and name properties to simplify the functionality, but this created an error as it seems like it has to have a pre populated link?
There must be a really simple solution to this that someone can point out? Perhaps I am missing something quite obvious here!
Thanks
Rich
the send dialog is probally your best solution for this https://developers.facebook.com/docs/reference/dialogs/send/
from jssdk you could use feed dialog which can be set up to send to individual user, or pages you own. https://developers.facebook.com/docs/reference/javascript/ using the to parameter.
the below sample does require Javascript SDK – you can get here https://developers.facebook.com/docs/reference/javascript/