Comments (6)
Try $details->raw('timezone')
. If it's available using the scopes that are setup, it should come back there.
It won't come back as part of the standardized response because not all social providers will include that and part of the goal of the package is to normalize the data across providers.
from eloquent-oauth-l5.
Hi Adam, thanks for getting back to me so quick.
I tried that but it doesn't seem to be there. So I did var_dump($details)
and it gave me:
...so I guess it's not there. I'll go dig deeper, and if I find anything I'll post back.
from eloquent-oauth-l5.
Looks like it's the $fields
array in lines 14-17 of socialnorm-facebook/src/FacebookProvider.php
that controls this. When I add 'timezone' to this array, I get the timezone in $details->raw
.
I'll post something in socialnorm.
Thanks again,
B.
from eloquent-oauth-l5.
Ah makes sense!
You could easily extend the default Facebook provider and replace that fields array with your own, then just register your Facebook provider using this method: https://github.com/adamwathan/eloquent-oauth/blob/master/src/OAuthManager.php#L27-L30
Just register it under the facebook
key and it'll override the one that's registered by default. I think if you put it in your AppServiceProvider
it'll get registered last and definitely override the existing registration.
Would be nice to make the Facebook provider more configurable out of the box but this should help in the mean time.
from eloquent-oauth-l5.
Cool - I'll give that a try. Many thanks for your help. :-)
from eloquent-oauth-l5.
In case anyone's ever looking at this, I've put together a pull request.
from eloquent-oauth-l5.
Related Issues (20)
- Problem with user has same email address on login HOT 1
- Twitter HOT 1
- Add support for Twitter provider HOT 3
- EloquentOAuthServiceProvider not found HOT 4
- cannot get gender from facebook HOT 3
- Exception: Publish package configuration in Laravel 5.2 HOT 1
- API calls from the server require an appsecret_proof HOT 1
- Why are you using another config file? HOT 1
- Nice package but can be framework agnostic. Can you do that please HOT 1
- Support Laravel 5.3 HOT 4
- Installation Problem HOT 1
- Sentinel integration HOT 2
- Error 500 HOT 2
- Tag for Laravel 5.4-support? HOT 3
- Allow more than one scope HOT 12
- Is There a way to auth sending email and password to Facebook or google? HOT 3
- how do i make remember me now?? HOT 2
- login in with a customised guard HOT 1
- already have an account registred with the same email HOT 1
- i got guzzle http exception HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eloquent-oauth-l5.