chok / sfMelodyPlugin

Allow to communicate with many services(google, yahoo...) throw OAuth
MIT License
45 stars 21 forks source link

facebook: posting on contacts walls #58

Open jadeGA opened 12 years ago

jadeGA commented 12 years ago

Hi guys, Could someone please provide a code snippet of inviting facebook contacts to a website or posting a message on the contacts walls using sfMelody. I am new to both symfony and sfMelody. I have gone this far that $this->me = $this->getUser()->getMelody('facebook')->getMeFriends(); returns me an associate array of friends like as below.

sfOutputEscaperObjectDecorator Object ( [value:protected] => stdClass Object ( [data] => Array ( [0] => stdClass Object ( [name] => Markxx [id] => 33333 ) [1] => stdClass Object ( [name] => Donald xxx [id] => 364xxx ) [2] => stdClass Object ( [name] => Rebekxxxx[id] => 345454 ) [3] => stdClass Object ( [name] ....................................................... paging] => stdClass Object ( [next] => https://graph.facebook.com/5555555/friends?access_token=AAAEYBAOZAJgUBEvjXxz2RnZBKvIDlewZAngecQsdXCssGkaZBEZBkOXItuZAPmmHe8edG6ZAPXub5EJ6BJ3tZAlwVZDZD&limit=5000&offset=5000&__after_id=10000433333 ) ) [escapingMethod:protected] => esc_specialchars ) .

Any javascript or PHP snippet or just a description how to go about that would really be appreciated. Cheers