Dear All,
For some reason, Steam login has stopped working on my website. I have so far integrated with Steam, Facebook and Google only and Steam now doesn't redirect back. Fb and Google works perfectly fine however i need to only allow Steam logins going forward.
Also I need to some how show Steam ID (32 or 64 bit) in the user public profile. Need to really find another utility of oneall apart from just managing open ID login.
Regards,
Answers
Hum, just checked and it appears ok now. There were problems on July 17 reported.
The Steam ID is present in the social profile: (see an extract below)
"id": "http://steamcommunity.com/profiles/76561198216666693/", "urls": [ { "value": "http://steamcommunity.com/profiles/76561198216666693/", "type": "profile" } ], "accounts": [ { "domain": "steamcommunity.com", "userid": 76561198216666693 } ],
Extracting it in your app depends on your site of course.Secondly, the code you have shown above certainly has steam ID however I have no idea from where you getting it? All I am looking for is to show Steam ID or SteamCommunity profile link on user's public profile on my website. I am basically making it mandatory for all users to register/login only via Steam ID as I need their Steam IDs to further whitelist in the gaming servers.
Let me know if you can help in this regard.
What is your site's URL?
Also, do you use Oneall via any plugin (Wordpress,...)
The code shown is the profile your web application receives after successful login and redirection (which is not happening in you case).
You can see a real example from oneall.com/services/social-login/#social-login-demo.
Registering with Steam on the site seems to work.
Logging back in also (via the login form and via the registration form).
(The steam login is not present on the login form).
Regards
Regarding your other question on storing the steam id, this link has additional info:
docs.oneall.com/plugins/guide/social-login-wordpress/#3
In your situation, something like this in functions.php will add the steamid to Buddypress profile field 'steamid' (predefined):
add_action ('oa_social_login_action_after_user_insert', 'add_steamid', 10, 2); function add_steamid ($user_data, $identity) { // supposing $identity->accounts[0]->domain == 'steamcommunity.com' if ( !empty ($identity->accounts[0]->userid)) { do_action ('bp_setup_globals'); xprofile_set_field_data ('steamid', $user_data->ID, $identity->accounts[0]->userid); } else { error_log ('Missing steam id'); } }