Get permission and begin publishing to a Facebook page wall, separate from user's account? -
using facebook c# sdk nathan totten, how go getting permission post facebook page wall, page id provide?
i've got facebook c# sdk working let users login using facebook account, , making posts own walls. however, wish let users enter facebook page id (of admin of) , begin publishing wall.
when click login via facebook button, if they've never logged in before automatically asks permission. not sure how later, when user has granted permission profile info... , want permission page wall.
to fb permission publish page wall need grant user manage_pages permission.
after user granted permission manage pages may publish posts page.
for fb button may try this:
<fb:login-button onlogin="onrequestpermission();"></fb:login-button> function onrequestpermission(){ var mypermissions = "publish_stream, manage_pages"; // permissions app needs fb.connect.showpermissiondialog(mypermissions , function(perms) { if (!perms) { // handles if user rejects request permissions. place log off facebook connect } else { // finish here if user has accepted permission request }; }); }
i didn't try fb-login button, not sure if works correctly.
Comments
Post a Comment