using facebook stream publish
问题 I want to publish a URL as an attachment to a friends wall: var attachment={'name':'favor','href':'http://128.196.239.71/movie.php?mid=<?php echo $_GET['mid']; ?>'}; Facebook.streamPublish('',attachment,null,friends[i],comment,callback); Doing the above gives me a Facebook undefined, what should I do to remedy this? Do I need to set a special permission in order to do this to the sender of this message? 回答1: You do need the stream.publish permission in order to use the stream.publish method