{"action":"closed","issue":{"url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/1023","repository_url":"https://api.github.com/repos/hwi/HWIOAuthBundle","labels_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/1023/labels{/name}","comments_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/1023/comments","events_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/1023/events","html_url":"https://github.com/hwi/HWIOAuthBundle/issues/1023","id":160621334,"number":1023,"title":"Error calling setFacebookAccessToken","user":{"login":"alphatesla","id":1798897,"avatar_url":"https://avatars.githubusercontent.com/u/1798897?v=3","gravatar_id":"","url":"https://api.github.com/users/alphatesla","html_url":"https://github.com/alphatesla","followers_url":"https://api.github.com/users/alphatesla/followers","following_url":"https://api.github.com/users/alphatesla/following{/other_user}","gists_url":"https://api.github.com/users/alphatesla/gists{/gist_id}","starred_url":"https://api.github.com/users/alphatesla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphatesla/subscriptions","organizations_url":"https://api.github.com/users/alphatesla/orgs","repos_url":"https://api.github.com/users/alphatesla/repos","events_url":"https://api.github.com/users/alphatesla/events{/privacy}","received_events_url":"https://api.github.com/users/alphatesla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-16T09:48:35Z","updated_at":"2016-06-21T15:20:38Z","closed_at":"2016-06-21T15:20:38Z","body":"Hi,\r\n\r\nI'm trying to implement a custom user provider. I use https://gist.github.com/danvbe/4476697 as a model.\r\n\r\nBut I don't understand how this is supposed to work:\r\n```php\r\n//if user exists - go with the HWIOAuth way\r\n        $user = parent::loadUserByOAuthUserResponse($response);\r\n        $serviceName = $response->getResourceOwner()->getName();\r\n        $setter = 'set' . ucfirst($serviceName) . 'AccessToken';\r\n        //update access token\r\n        $user->$setter($response->getAccessToken());\r\n```\r\nhow user class is aware of a method named `setFacebookAccessToken` ?\r\n```\r\nAttempted to call an undefined method named \"setFacebookAccessToken\" of class \"HWI\\Bundle\\OAuthBundle\\Security\\Core\\User\\OAuthUser"}}
{"actor":{"display_login":"alphatesla"}}