diff --git a/README.txt b/README.txt index 34250ad..e38702a 100644 --- a/README.txt +++ b/README.txt @@ -29,7 +29,7 @@ Facebook Rules module provides following rules. Action: a. Post to user's wall. -This modules extends the permissions(publish_stream) asked by FBOauth and stores the access token generated by FBOauth module in the database. In case a rule is fired and access token is found to be expired or not set, it would prompt the user to renew it. +This modules extends the permissions(publish_actions) asked by FBOauth and stores the access token generated by FBOauth module in the database. In case a rule is fired and access token is found to be expired or not set, it would prompt the user to renew it. Individual users can specify if they want this module to post on their walls or not, despite the configured rules(if any). Intentionally, there is no option for the admin to force users to update their walls on any activity. In case it is a required feature, developers may look into hook_form_alter() for a solution. /** diff --git a/facebook_rules.module b/facebook_rules.module index cb15084..0d36db5 100755 --- a/facebook_rules.module +++ b/facebook_rules.module @@ -109,14 +109,14 @@ function facebook_rules_fboauth_actions() { 'title' => t('Generate facebook token'), 'callback' => 'facebook_rules_generate_token', 'permissions' => array( - 'publish_stream', + 'publish_actions', ), ); //overwrite fboauth connect callback //to add more permissions and store user's access token. $actions['connect']['permissions'] = array_keys(fboauth_user_connect_permissions()); - $actions['connect']['permissions'][] = 'publish_stream'; + $actions['connect']['permissions'][] = 'publish_actions'; $actions['connect']['callback'] = 'facebook_rules_fboauth_action_connect'; //overwrite fboauth deauth callback