Topic-icon Require review by Facebook

Support Specialist
12 years 6 days ago #44459 by alzander
Replied by alzander on topic Require review by Facebook
Sorry for the delay. We're planning to look into the locale field shortly, but I don't know when I'll have a specific answer. Hopefully, it should be within the next few days.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 6 days ago #44512 by andbal2
Replied by andbal2 on topic Require review by Facebook
hi, tx for reply, you mean few days for locale and also for age range? it would be great considering recent restrictions about profile information. tx
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #44751 by andbal2
Replied by andbal2 on topic Require review by Facebook
hi, sorry, have news? are you working on this, have a timing? tx
The topic has been locked.
Support Specialist
11 years 11 months ago #44830 by alzander
Replied by alzander on topic Require review by Facebook
Very sorry for the delays in getting back to you. We've done a little research and there's good and bad news.

First, adding locale is a very simple thing to do. If you want to use it now, simply edit the /components/com_jfbconnect/libraries/profile/facebook.php file. Towards the top, around line 16, you'll see the definition for $this->providerFields. Lower, around line 23, you'll see:
'friend_count' => 'User - Friend Count',
After that, just create a new line that looks like:
'locale' => 'Location - Locale',
That will add the option to set the user's Locale in the JFBConnect -> Profiles area. The value imported will be a standard ISO country identifier, like "en_US".

For Age Range, it provides it's data back in a way that would require a little formatting. The whole purpose of that field is to know whether you have an underage user. It will provide a 'min' and 'max' field for the age range. If the user is 21 or over, the 'min' field will simply be set to 21. Even if the user is 99, all you'll know is that they are over 21.

For under 21, there seems to be a few ranges that Facebook will return, like 18-20, 14-17 and (I think) under 14.

That's something we may add in the future, but I'm not sure how we want to parse that data out into a text field or if it will even be useful to the majority of our users.

Let me know your thoughts on whether you'd like to get a field for "Over 21" or something like that and we'll see what we can do.

Please let me know any feedback you have, and thanks again for your patience.

Alex
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #44845 by andbal2
Replied by andbal2 on topic Require review by Facebook
hi, tx for your reply, i added the locale and it works. but it's just information about language, i thought it was the locale, i mean the city. is there a way to import city information without ask more than public_profile?
for the age maybe can semplify if you use a simple text field to host every kind of information; i mean not using a select to provide every option

tx, best regards
The topic has been locked.
Support Specialist
11 years 11 months ago #44854 by alzander
Replied by alzander on topic Require review by Facebook
There's no way to import city information without adding the permission for user_location. The locale setting is just what you describe, the user's ISO locale (their language).

With default permissions, Facebook doesn't give a lot of specific information about a user away. That's the whole point. You need to really 'need' that extra information and go through their hoops to get it.

For the Age field, how would you expect something like that formatted?
21+
18-20
14-17
Under 13
?
I think those are all the possible values. We could easily make that into a simple text output that could be stored if you think that would be helpful.

Thanks,
Alex
The topic has been locked.