Possible? Yes, HybridAuth supports the FaceBook Perm API, which allows you to control which permissions are available. The way to do this is simple. in the scope array, you enter the permissions that you need and which you need. Itโs impossible to pretend that you are using only a few, but in fact you are using all of them. I will give you sample code (in PHP) as an approximate idea of โโwhat it is:
<?php $config = array( "base_url" => "http://mywebsite.com/path/to/hybridauth/", "providers" => array ( "Facebook" => array ( "enabled" => true, "keys" => array ( "id" => "PUT_YOURS_HERE", "secret" => "PUT_YOURS_HERE" ), "scope" => "email, user_about_me, user_birthday, user_hometown",
As you can see, the scope array contains the permissions that you are going to use in your application. For some, thatโs all, yes, it can happen on Hybrid Auth. But at the same time, it depends on what you use, you might be better off using the Facebook and C + APIs. For more information, please contact: http://hybridauth.sourceforge.net/userguide/IDProvider_info_Facebook.html And for the Facebook API: http://developers.facebook.com/docs/reference/dialogs#display
If you need more help, please comment below, and if I was not clear enough, I regret the inconvenience. Enjoy your day!
source share