Skip to content

the reality tunnel

  • Work
  • About

Tag: login

Enabling WordPress Facebook login for existing user

I’m using the WP-FacebookConnect plugin to let users log in using their Facebook accounts for some of the WordPress-based sites I’ve created. I noticed that Facebook login wasn’t enabled (and regular login was broken) for users I created through the Users page in the WordPress Admin. I found that manually assigning a variable that linked a user’s Facebook user ID to their WordPress user ID did the trick.

This is the SQL query I used:

INSERT INTO `wp_usermeta` ( `umeta_id` , `user_id` , `meta_key` , `meta_value` )
VALUES (
'', '1', 'fbuid', '111111111'
);

In the above example, replace ‘1’ with your user’s WordPress user ID (which you can get from the URL of the user edit page in WordPress) and ‘111111111’ with the user’s Facebook ID (which you can find by viewing the user’s Facebook profile, viewing the source of the page and searching for the string “uid”.

Published December 12, 2010
Categorized as hacks Tagged authentication, facebook, facebook connect, login, plugin, Recipes, sql, wordpress

Categories

  • address
  • Bloomington
  • Boxcar
  • chicago
  • Chicago DIY
  • Civics
  • Code
  • Defiance Ohio
  • Disaster
  • Fun-a-Day 2012
  • gender
  • hacks
  • Healthy Indiana Plan
  • Hinged
  • Hoops
  • Ideas
  • journalism
  • Lets Go
  • Lists
  • Maps of My Life
  • media queue
  • Medill Community Media Innovation Project
  • Music
  • note to self
  • Pages to Prisoners
  • People
  • Performances
  • Photos
  • podcasts
  • Prison Industrial Complex
  • Projects
  • Recipes
  • Reporting
  • Reporting Across Boundaries
  • Spaces
  • Talks
  • technology
  • Uncategorized
  • VideoLog
  • Work

Tags

47401 activism art asian Bloomington Boxcar chicago class community culture defianceohio development Disaster diy django drupal education election food gender healthcare HIP immigration indiana jail linux media music pages politics prisons programming punk python race radio Recipes recipes show sweethickory technology travel tweetit violence youth

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
the reality tunnel
Proudly powered by WordPress.