Anyone know if there is a new way in the new API to set the user? I'm getting the error, Call to undefined method Facebook::setUser()
. I cant find anything on Google.
views:
20answers:
1
A:
You're getting the "call to undefined method" error because the class doesn't contain a setUser()
method.
This method has been replaced by the new getSession
method, which attempts to parse user data from the fbs_*
cookie (for Facebook Connect implementations) or HTTP GET parameters (for Facebook Canvas applications).
Johannes Gorset
2010-06-25 13:12:52