Use api_base_uri from OAuth2
Make able to set fields of user profile from HybridAuth config
This doesn't seem to be backward compatible.
Maybe, better assume old fields by default, but allow to redefine it using configuration?
@nazar-pc, can you provide example when it breaks something? I'll fix this shortly.
But i think they are backward-compatible. PR just add some new fields, but not removes old (see code below).
All fields, that defined in \Hybrid_User_Contact but not got from Vkontakte, wil be null but they will exist.
public $fields = [
'identifier' => 'uid', // Old field saved
'firstName' => 'first_name', // Old field saved
'lastName' => 'last_name', // Old field saved
'gender' => 'sex', // Old field saved
'displayName' => 'screen_name', // Old field saved
'city' => 'city', // New one
'country' => 'country', // New one
'bdate' => 'bdate', // Old field saved
'photoURL' => 'photo_max_orig', // Old field saved
'nickname' => 'nickname', // Old field saved
'domain' => 'domain', // New one
'timezone' => 'timezone', // Old field saved
'photo_rec' => 'photo_rec', // Old field saved
'photo_max' => 'photo_max', // New one
'home_phone' => 'home_phone', // New one
'home_town' => 'home_town', // Old field saved
Update default fields map to increase backward compability with old v…
…ersion of provider
Okay, i've changed field map to make compability more clear. Check this out, please.
Ah, sorry, looks like I understood it wrong, seems to be fine indeed, did you test it (because I didn't yet)?
Add comments for fields map to make it more clear for those who will …
…read this code
Yep, i use this code in my project and tested compability version from master and from my PR. It's good, just added new fields.
Now i've added more comments to fields map.
2.5.0 - September 7 2015
#444 + #445 - Slack provider
$474 - WarGaming OpenID provider
#454 - xuite's oauth provider
#480 - Improved inline documentation for IDE support
#370 + #495 - [github] getUserContacts() implementation
(followers & following)
#372 + #495 - [instagram] getUserContacts() implementation
(follows & followed-by)
#519 - [Twitter] Add email option to Twitter API
#438 + #445 - [LinkedIn] getusercontacts error
#446 + #447 - [Steam] xml parsing error
#340 + #476 - Ensure session is saved before sending response
#472 - [Facebook] Obsolete 'read_friendlists' FB permission was
changed to 'read_custom_friendlists'
#453 - [Vkontakte] fix Undefined property: stdClass::$email
#499 + #500 - [Facebook] Bug: treating hometown as current
#523 - [Draugiem] API does not always return the birthday object
#525 - [Facebook] Fixes getUserProfile v2.4 compatibility
#532 + #533 [soundcloud] Provider doesn't implement
getUserProfile() and getUserContacts()
#535 - [Draugiem] API does not always return the birthday object
#477 - [Vkontakte] Move Vkontakte fields to configuration
71531f2 - [Facebook] Adding birthday field to be retrieved
#455 - [Viadeo] Viadeo connect not existing anymore