10845 Posts in 2513 Topics by 1792 members
|Go to End|
9 March 2011 at 10:02am
I see the protected function makeRequest which seems like it could be used to publish to a friends wall, but I am not sure the proper way to access it. In my case I would like to use it from a Form's Actions function, using data submitted by the user to publish to someones wall.
These are pretty facebook specific question here, but I'll throw it out just in case somebody knows off the cuff--
In order to publish to a friend's wall I will also need to be granted higher permissions than the module requests by default, yes? I believe this can be done with the set_permissions function, but after setting them how do you re-request the user to authorize them?
9 March 2011 at 10:01pm
ll I will also need to be granted higher permissions than the module requests by default, yes? I believe this can be done with the set_permissions function
Yes you will need to ask for permissions related to posting to the wall. Check the fb docs for more information on the available permissions
I see the protected function makeRequest which seems like it could be used to publish to a friends wall, but I am not sure the proper way to access it. In my case
Currently the module does not wrap any of the facebook API methods. It does however, give you access to the base Facebook API. From there you can do crazy and do your own things..
// your controller
$fb = $this->getFacebook();
Facebook has some really nice documentation available https://developers.facebook.com/docs/reference/api/
10 March 2011 at 1:07pm
Thank for the reply... I'm struggling with how to prompt for the extended permissions though. I can't make facebook JS calls such aswithout getting errors. Doesnt the module take care of setting that up? I'm a lost.
Facebook.showPermissionDialog('publish_stream', ondone, false, '');
10 March 2011 at 1:23pm
You can use FacebookConnect::set_permissions($permissions) to set what permissions the module asks for. Not sure if it works but it should reask the user if your application hasn't got all the permissions required.
|Go to Top|