Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Sending private message through api is now possible.</p> <p>Fire this event for sending message(initialization of facebook object should be done before).</p> <p><code>to:user</code> id of facebook</p> <pre class="lang-js prettyprint-override"><code>function facebook_send_message(to) { FB.ui({ app_id:'xxxxxxxx', method: 'send', name: "sdfds jj jjjsdj j j ", link: 'https://apps.facebook.com/xxxxxxxaxsa', to:to, description:'sdf sdf sfddsfdd s d fsf s ' }); } </code></pre> <p>Properties</p> <ul> <li><p>app_id<br> Your application's identifier. Required, but automatically specified by most SDKs.</p></li> <li><p>redirect_uri<br> The URL to redirect to after the user clicks the Send or Cancel buttons on the dialog. Required, but automatically specified by most SDKs. </p></li> <li><p>display<br> The display mode in which to render the dialog. This is automatically specified by most SDKs. </p></li> <li><p>to<br> A user ID or username to which to send the message. Once the dialog comes up, the user can specify additional users, Facebook groups, and email addresses to which to send the message. Sending content to a Facebook group will post it to the group's wall. </p></li> <li><p>link<br> (required) The link to send in the message. </p></li> <li><p>picture<br> By default a picture will be taken from the link specified. The URL of a picture to include in the message. The picture will be shown next to the link. </p></li> <li><p>name By default a title will be taken from the link specified. The name of the link, i.e. the text to display that the user will click on.</p></li> <li><p>description<br> By default a description will be taken from the link specified. Descriptive text to show below the link.</p></li> </ul> <p>See more <a href="https://developers.facebook.com/docs/reference/dialogs/send/" rel="noreferrer">here</a></p> <p>@VishwaKumar: </p> <p>For sending message with custom text, you have to add 'message' parameter to <code>FB.ui</code>, but I think this feature is deprecated. You can't pre-fill the message anymore. Though try once.</p> <pre class="lang-js prettyprint-override"><code>FB.ui({ method: 'send', to: '1234', message: 'A request especially for one person.', data: 'tracking information for the user' }); </code></pre> <p>See this link: <a href="http://fbdevwiki.com/wiki/FB.ui" rel="noreferrer">http://fbdevwiki.com/wiki/FB.ui</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload