send messages to friends facebook sdk

222 views Asked by At

I have implemented sending message to friends through api like below.

    function share(){
      FB.ui({
        appId      : 'xxxxxxxx',
        method: 'send',
        to : ["xxxxxxxxx"],
        link : "https://www.facebook.com",
        name : "xxxxxxxxx",
        description : "message"
      });
    }

I am able to send message but the receiver gets the message as

"This attachment may have been removed or the person who shared it may not have permission to share it with you."

Where am i going wrong?

0

There are 0 answers