{"id":2222,"date":"2010-12-12T17:05:05","date_gmt":"2010-12-12T22:05:05","guid":{"rendered":"http:\/\/blogs.terrorware.com\/geoff\/?p=2222"},"modified":"2010-12-12T17:05:05","modified_gmt":"2010-12-12T22:05:05","slug":"enabling-wordpress-facebook-login-for-existing-user","status":"publish","type":"post","link":"https:\/\/blogs.terrorware.com\/geoff\/2010\/12\/12\/enabling-wordpress-facebook-login-for-existing-user\/","title":{"rendered":"Enabling WordPress Facebook login for existing user"},"content":{"rendered":"<p>I&#8217;m using the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-facebookconnect\/\">WP-FacebookConnect<\/a> plugin to let users log in using their Facebook accounts for some of the WordPress-based sites I&#8217;ve created.  I noticed that Facebook login wasn&#8217;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&#8217;s Facebook user ID to their WordPress user ID did the trick.<\/p>\n<p>This is the SQL query I used:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nINSERT INTO `wp_usermeta` ( `umeta_id` , `user_id` , `meta_key` , `meta_value` )\r\nVALUES (\r\n'', '1', 'fbuid', '111111111'\r\n);\r\n<\/pre>\n<p>In the above example, replace &#8216;1&#8217; with your user&#8217;s WordPress user ID (which you can get from the URL of the user edit page in WordPress) and &#8216;111111111&#8217; with the user&#8217;s Facebook ID (which you can find by viewing the user&#8217;s Facebook profile, viewing the source of the page and searching for the string &#8220;uid&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using the WP-FacebookConnect plugin to let users log in using their Facebook accounts for some of the WordPress-based sites I&#8217;ve created. I noticed that Facebook login wasn&#8217;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&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.terrorware.com\/geoff\/2010\/12\/12\/enabling-wordpress-facebook-login-for-existing-user\/\">Continue reading <span class=\"screen-reader-text\">Enabling WordPress Facebook login for existing user<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[27],"tags":[419,20519,20598,20599,474,21287,20595,62],"class_list":["post-2222","post","type-post","status-publish","format-standard","hentry","category-hacks","tag-authentication","tag-facebook","tag-facebook-connect","tag-login","tag-plugin","tag-howto","tag-sql","tag-wordpress","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4wnIz-zQ","_links":{"self":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/comments?post=2222"}],"version-history":[{"count":2,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2222\/revisions"}],"predecessor-version":[{"id":2224,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2222\/revisions\/2224"}],"wp:attachment":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/media?parent=2222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/categories?post=2222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/tags?post=2222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}