1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Facebook Send Dialogue with Pre populated friend list

Discussion in 'Facebook API' started by rahat.jaan, Jul 23, 2012.

  1. #1
    Look at the code snippet


    <script>
    FB.ui(
    {
    method: 'send',
    message: 'Test Request',
    to: [61110868, 500335390],
    link: "https://developers.facebook.com"
    SEMrush

    }
    );
    </script>


    This script works fine when I test it on api test console but when I use the same code in my site then it only get the first user from given user Ids, it does not populate all the users mentioned in to:'userIds'. Can you help me what am I doing wrong.
    Some blogs says that FB SDK does not support this, but FB API documentation says that we can do this. Can you guide me what is problem with this code?
     
    rahat.jaan, Jul 23, 2012 IP
    SEMrush