Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Barebones SSO
#1
How to create an avatar fields, and get an Avatar from social Login ?
Sorry for my bad english.
Reply
#2
The Google account SSO provider already has support for mapping the user's 'picture' URL (if any) to a field.

I assume you are referring to the Facebook account SSO provider. You could try modifying 'providers/sso_facebook/index.php' and add the following after the line that starts with "third_party_id":

PHP Code:
    "picture" => array("title" => "Profile Photo URL""desc" => "user's profile photo""extra" => ""), 

That should allow you to map the user's Facebook profile photo to a field. If the above works for you, let me know.
Author of Barebones CMS

If you found my reply to be helpful, be sure to donate!
All funding goes toward future product development.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
© CubicleSoft