php - send message to selected friends in facebook -


i have following code send messages selected friends custom made

$friends = $facebook->api(array(             "method"    => "fql.query",             "query"     => "select uid,name user uid in (select uid2 friend uid1 = me())"         )); 

where $facebook 1 having details of application & key values.,

& friends list $friends

i'll having textarea enter message has sent,

now i'll passing selected list of friends & message function follows

function facebook_send_message(to,message) {         fb.ui({             app_id:'my app id',             method: 'send',             name: 'abcdef',             link: 'http://apps.facebook.com/',             to:to,             message:message          },function(response){alert(response);});     } 

when function called, facebook popup opens, form in these content placed gets submitted, i'm not able send message selected friends, can me in issue..

for sending message custom text, have added 'message' parameter fb.ui, feature deprecated. can't pre-fill message anymore.

this deprecated might because of bad advertisements. don't use 'message' parameter message.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -