Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove wall-posting (and the need for the publish_stream permission) from http://community.elgg.org/pg/plugins/release/800720/developer/chetanvarshney/facebook-connect-login-for-elgg-18
diff --git a/lib/facebook_connect.php b/lib/facebook_connect.php
index 20c54ae..9afb18a 100755
--- a/lib/facebook_connect.php
+++ b/lib/facebook_connect.php
@@ -153,7 +153,7 @@ function facebook_connect_login()
'description' => $site->name . ' is the social network for connecting people.'
);
- $status = $facebook->api('/me/feed', 'POST', $params);
+ //$status = $facebook->api('/me/feed', 'POST', $params);
if($userSave)
{
if (!$user->save())
@@ -317,7 +317,8 @@ function facebook_connect_get_authorize_url($next='')
$facebook = facebookservice_api();
return $facebook->getLoginUrl(array(
'next' => $next,
- 'req_perms' => 'user_status,publish_stream,email,',
+ //'req_perms' => 'user_status,publish_stream,email,',
+ 'req_perms' => 'user_status,email,',
));
}
diff --git a/start.php b/start.php
index a760744..93ca3f5 100755
--- a/start.php
+++ b/start.php
@@ -27,9 +27,9 @@ function facebook_connect_init()
elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'facebook_connect_public_pages');
// allow plugin authors to hook into this service
- elgg_register_plugin_hook_handler('post', 'facebook_service', 'facebookservice_post');
+ //elgg_register_plugin_hook_handler('post', 'facebook_service', 'facebookservice_post');
elgg_register_plugin_hook_handler('viewnote', 'facebook_service', 'facebookservice_viewnote');
- elgg_register_plugin_hook_handler('postnote', 'facebook_service', 'facebookservice_postnote');
+ //elgg_register_plugin_hook_handler('postnote', 'facebook_service', 'facebookservice_postnote');
elgg_register_plugin_hook_handler('viewwall', 'facebook_service', 'facebookservice_viewwall');
elgg_register_plugin_hook_handler('viewstatus', 'facebook_service', 'facebookservice_viewstatus');
elgg_register_plugin_hook_handler('viewfeed', 'facebook_service', 'facebookservice_viewfeed');
@@ -37,8 +37,8 @@ function facebook_connect_init()
elgg_register_plugin_hook_handler('viewcomment', 'facebook_service', 'facebookservice_viewcomment');
elgg_register_plugin_hook_handler('viewusername', 'facebook_service', 'facebookservice_viewusername');
elgg_register_plugin_hook_handler('viewlike', 'facebook_service', 'facebookservice_viewlike');
- elgg_register_plugin_hook_handler('postcomment', 'facebook_service', 'facebookservice_postcomment');
- elgg_register_plugin_hook_handler('postlike', 'facebook_service', 'facebookservice_postlike');
+ //elgg_register_plugin_hook_handler('postcomment', 'facebook_service', 'facebookservice_postcomment');
+ //elgg_register_plugin_hook_handler('postlike', 'facebook_service', 'facebookservice_postlike');
elgg_register_plugin_hook_handler('friendrequest','facebook_service','facebookservice_friendrequest');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.