{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/954","repository_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/954/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/954/comments","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/954/events","html_url":"https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/954","id":163858861,"number":954,"title":"Facebook/Twitter Login Conflict","user":{"login":"acegreen","id":10794609,"avatar_url":"https://avatars.githubusercontent.com/u/10794609?v=3","gravatar_id":"","url":"https://api.github.com/users/acegreen","html_url":"https://github.com/acegreen","followers_url":"https://api.github.com/users/acegreen/followers","following_url":"https://api.github.com/users/acegreen/following{/other_user}","gists_url":"https://api.github.com/users/acegreen/gists{/gist_id}","starred_url":"https://api.github.com/users/acegreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acegreen/subscriptions","organizations_url":"https://api.github.com/users/acegreen/orgs","repos_url":"https://api.github.com/users/acegreen/repos","events_url":"https://api.github.com/users/acegreen/events{/privacy}","received_events_url":"https://api.github.com/users/acegreen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-05T14:04:57Z","updated_at":"2016-07-09T14:46:57Z","closed_at":null,"body":"Hello, \r\n\r\nI'm coming across something unexpected, when doing the following:\r\n- Login through Twitter\r\n- Logout \r\n- Login through Facebook (same email)\r\n\r\nI get the expected error _Account already exists for this email address_  BUT\r\n- The user with the same email  (the one linked to Twitter) is not updated  \r\n- on the front, the user info is updated to include reflect the Facebook login info\r\n- on the backend, a new user is created with **JUST** a random username & Facebook token, the other front end info is not reflected there (even though the code runs).\r\n\r\nNote: I use the standard login and handle things in didLogInUser()\r\n\r\nQuestions:\r\n1. Why is there a miss match between between front end and backend? I would expect that even if it creates a new user, that it would reflect the user info on the backend. By that I mean everything I usually set (username, email etc) instead it just adds a random username [code runs]\r\n2. How do I get it to recognize that user is already linked, unlink/link with new method, and update info? \r\n\r\nI would try something like this  but technically the new user in the Facebook login sections but technically this will never get called, since it creates a new user with Facebook login.  \r\n\r\n            if PFTwitterUtils.isLinkedWithUser(user) {\r\n                PFTwitterUtils.unlinkUserInBackground(user, block: { (success, error) in\r\n                    if success {\r\n                        \r\n                    }\r\n                })\r\n            }"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/comments/231537868","html_url":"https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/954#issuecomment-231537868","issue_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/954","id":231537868,"user":{"login":"flovilmart","id":364568,"avatar_url":"https://avatars.githubusercontent.com/u/364568?v=3","gravatar_id":"","url":"https://api.github.com/users/flovilmart","html_url":"https://github.com/flovilmart","followers_url":"https://api.github.com/users/flovilmart/followers","following_url":"https://api.github.com/users/flovilmart/following{/other_user}","gists_url":"https://api.github.com/users/flovilmart/gists{/gist_id}","starred_url":"https://api.github.com/users/flovilmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flovilmart/subscriptions","organizations_url":"https://api.github.com/users/flovilmart/orgs","repos_url":"https://api.github.com/users/flovilmart/repos","events_url":"https://api.github.com/users/flovilmart/events{/privacy}","received_events_url":"https://api.github.com/users/flovilmart/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T14:46:57Z","updated_at":"2016-07-09T14:46:57Z","body":"When calling the login method, the current user state is completely ignored. You need to use the link method to link authentications methods to a certain user. The emails from twitter and Facebook are not used nor set to the user upon login."}}
{"actor":{"display_login":"flovilmart"}}