facebook - PHP-SDK publish_stream? -


when try publish on walls of friends, not work. don't know problem is. can me?

if ($user) {   try {     // user profile data have permission view     $user_profile = $facebook->api('/me/feed', 'post',                                 array(                                   'link' => 'www.your-website.com',                                   'message' => 'hello world!'                              ));   } catch (facebookapiexception $e) {     $user = null;   } } else {     $loginurl = $facebook->getloginurl(array('scope' =>'publish_stream','redirect_uri'=>'http://your-website/index.html'));   die('<script> top.location.href="'.$loginurl.'";</script>'); } 

in code above, calling end point "me" publish action. means publishing wall of current user, not friend. further this, facebook has removed ability post on friend's walls via graph api refer previous answer here has facebook started blocking posting on friend's wall?

if it's not working friend using app post own wall, make sure have appropriate permissions set (you can use me/permissions) endpoint check this


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -