Reputation: 3530
I'm trying set a custom description and name when sending link using FB Send Dialog.
FB.ui({
method: 'send',
name: 'Custom name',
display: 'popup',
link: 'http://link.com',
to: facebookUserId,
description: 'Custom desc.'
}
However, Send Dialog ignores custom name and description and uses title and "meta" description from link. When I first used Send Dialog (3 weeks ago) custom text and description were shown. I haven't made any changes since then.
Thanks a lot in advance.
Upvotes: 1
Views: 6242
Reputation: 15387
Try this
FB.ui({
method: 'send',
name: 'Custom name',
link: 'http://link.com',
to: facebookUserId,
description: 'Custom desc.'
});
Facebook Developer Reference
display
Determines how the dialog is rendered.
Upvotes: 0
Reputation: 47956
The dialog is ignoring those fields because it does not support them. If it did work previously, you can attribute it to Facebook's documentation being inexact (that happens quite a lot).
I believe you are confusing the Send and Feed dialogs. There are no "name" and "description" parameters for the Send dialog. Only to
and link
. This is mentioned in the documentation.
Whereas on the Feed dialog, you are able to supply all the fields you mention.
You can still use the Feed dialog and specify a to
parameter to get the same functionality.
Upvotes: 3