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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -