You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Hi there, I installed FOSTwitterBundle 1.0 and integrated with FOSFacebookBundle and FOSUserBundle.
I had an issue when authenticating with Twitter :-
"there is no provider for 'Acme\MyUserBundle\Entity\User'"
I have done lots of debugging and found that the issue was that the twitterID was not being serialized with the User when the Token was serialized. I fixed the problem using the same method as FOSFacebookBundle used, you must make sure that you have a serialize() and unserialize() function which preserves the twitterID :-
public function serialize()
{
return serialize(array($this->facebookId, $this->twitterID, parent::serialize()));
}
public function unserialize($data)
{
list($this->facebookId, $this->twitterID, $parentData) = unserialize($data);
parent::unserialize($parentData);
}
Hope this helps someone!
Thanks for the bundles :-)
Lev
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there, I installed FOSTwitterBundle 1.0 and integrated with FOSFacebookBundle and FOSUserBundle.
I had an issue when authenticating with Twitter :-
"there is no provider for 'Acme\MyUserBundle\Entity\User'"
I have done lots of debugging and found that the issue was that the twitterID was not being serialized with the User when the Token was serialized. I fixed the problem using the same method as FOSFacebookBundle used, you must make sure that you have a serialize() and unserialize() function which preserves the twitterID :-
Hope this helps someone!
Thanks for the bundles :-)
Lev
The text was updated successfully, but these errors were encountered: