I have a site that utilizes
accounts-password as well as third-party authentication services. (Facebook, Twitter, & Google).
If I have a user who registered and uses the standard
accounts-password package, how can I attach a third-part token to the profile? For example, the aforementioned user wants to post to their Facebook profile from the app. They’re already logged in, and just needs to authorize Facebook. But when I try to merge these accounts the third-party service (Facebook in this example) logs out the user and logs them back in under FB. They get treated as a separate user. Is there a way I can simple link or attach additional authorization tokens to a profile? This would also be needed if a user uses Facebook to login and wants to send a tweet, they’d need to
link the Twitter tokens to their current FB user profile. I’ve been hacking at this for a while with no luck. It seems like all the accounts packages that are out there to merge accoutns are not working or I’m not using them right (probably the latter). At the end of the day I’m just trying to save authorization tokens to a current profile. Any guidance is much appreciated. After three days I’m convinced I’m not even looking at the right place to begin.