Facebook UI send

1.4k views Asked by At

I am using this facebook ui

FB.ui({
  method: 'send',
  to: the_users_ids,
  link: 'http://ngtv2.info/',
  name: 'I have a message here http://ngtv2.info/',
  caption: 'The caption',
  description: ('the descript'),
  picture: 'the/path/of/thumb_snow_leopard.jpg'
});

the send facebook ui appears, but when I click on the send button and then check the fb account that suppose to get the message, It does not appear on the message list.

I am having a internal server error, and also this image enter image description here

Any idea?

I think my link is invalid, how can I make the link valid?

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.

enter image description here

Thank you in advance, King

2

There are 2 answers

1
Simon Woker On

Are you testing your application on localhost? That will not work.

6
DMCS On

I'll bet that the ids in the list are not friends of the user initiating the dialog. Or that the script is being run from a domain not listed in the app settings correctly.