Closed WojciechJasinski closed 12 years ago
Hi I have found the solution.
The problem is that Facebook doesn't return picture
string properties to pass to setFBData
in User
entity.
There was picture
string property that contained image url. Now it contain:
string; If the "October 2012 Breaking Changes" migration setting is enabled for your app, this field will be an object with the url and is_silhouette fields; is_silhouette is true if the user has not uploaded a profile picture
My setFBdata look like this:
public function setFBData($fbdata)
{
...
if (isset($fbdata['picture']))
{
$this->setPicturePath($fbdata['picture']);
}
}
As you can see it was trying to set object/array to string field.
I have posted this question on stackoverflow yesterday but as far noone was able to help me. So I will try to find some help here.
Since I updated from symfony 2.0 to 2.1 I cannot login via Facebook. Symfony redirects me to my login page and displays this error:
You can see my log file below:
The two sql SELECT queries above doesn't cause any errors and return no results (checked in phpmyadmin).
Composer.json:
To be honest I don't know what can be wrong and how to find an error. If you need some extra data/config files post a comment.