I'm using Drupal 7.5x and the HybridAuth Social Login module.
I am aware a lot of users have done this using Rules and Rules Event HybridAuth login
, combined with Set a data value
. However no one explains what comes after, it seems the Hybridauth tokens are either not editable or just invalid.
So I am using the the Rules Event User logged in through HybridAuth
, and I want to set a data value. Here is an export of the rule I have so far:
{ "rules_updateinfo" : {
"LABEL" : "updateinfo",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"TAGS" : [ "login" ],
"REQUIRES" : [ "hybridauth" ],
"ON" : { "hybridauth_user_login" : [] },
"DO" : []
}
}
I want to update the token user:hybridauth:profileURL
with the new data provided by the API (= hybridauth:profileURL
). However when trying to input any of these tokens into the data selector, either of the following errors show up:
If I use Data selector: hybridauth:profileURL, the error is:
"The selected data property doesn't support writing."
If I use Data selector: user:hybridauth:profileURL, the error is:
"Data selector user:hybridauth:profileURL for parameter data is invalid."
I'm sure I'm doing something wrong, can someone help me to get such rule to work? Is it even possible?