Hi, gang. I've set up a text field in my site's user account settings to catch address information from a Facebook login, but it doesn't seem to get passed. (I was able to catch birthday and gender info, though.) Any ideas?

(Possibly related to #1240194: Support for address / location type modules, although I'm simplifying matters by using a simple multiline text field.)

Thanks!

Comments

geokat’s picture

Hi,

Currently, there's no way to obtain a user's address from Facebook other than the home town.

You can check what information is being returned by Facebook using the "Test Sign-In Widget" tool in the rpxnow.com dashboard under "Resources". You should also check the Facebook permissions enabled for your Engage app under Deployment->"Provider configuration".

Hope this helps.

George

geokat’s picture

Version: 7.x-2.1-rc1 » 7.x-2.1
tgeller’s picture

Good tip, George! Looking at the info that widget returned, I see that the field is ['profile']['address']['formatted'], which isn't one of the default fields on the Janrain field-mapping page at /admin/config/people/rpx/mapping . Here are instructions to add that field (for others who read this):

  1. Click Configuration -> Janrain Engage
  2. Click the Manage Fields tab
  3. In the "Add new field" area, provide a name (such as "Full address") for the Title
  4. Enter the following for the Engage data path: ['profile']['address']['formatted']
  5. Click "Save new field"
  6. Click the Field Mapping tab
  7. In the last row, change "Select a data field" to the Title you entered. This is the source field on Facebook.
  8. Select the target field in the usual way via the popup menus.
  9. Click "Save configuration

Next step: Figuring out if I can get that value into the Location module somehow -- maybe using Rules? I'll report back if successful. :)

--Tom

tgeller’s picture

Figured it out! In brief:

  1. Install the Geofield and Geocoder modules.
  2. Add a Geofield with the widget, "Geocode from another field"
  3. Set the source to the field that was imported via Janrain Engage
  4. Configure it all.

The devil is in the details, which are a bit tricky. But I tried it, and it works. Good luck!