Closed GoogleCodeExporter closed 9 years ago
This is a very vague issue. Can you please provide some code?
Original comment by rovertn...@gmail.com
on 23 Feb 2011 at 9:52
This problem is solved, but now a new problem occured.
This is the code:
protected function loginHandler(success:Object,fail:Object):void
{
if(success){
currentState="LoggedIn";
Facebook.api('/me',getMeHandler);
userImg.source=Facebook.getImageUrl(success.uid,"small"); Facebook.api('/me/statuses',getStatusHandler);Alert.show(success.toString());
nameLbl.text=success.user.name;
}
}
protected function getMeHandler(result:Object,fail:Object):void{
nameLbl.text=result.user.name;
birthdayLbl.text=result.user.birthday;
}
The image and the status are displayed succesfully.
But the name and birthday label aren't.
This is the error:
TypeError: Error #1010: Een term is ongedefinieerd en heeft geen eigenschappen.
at FacebookUserStatusWeb/getMeHandler()[C:\Users\Mathijs Covemaeker\Desktop\Televic\facebooklogin\FLEX\FacebookUserStatusWeb\src\FacebookUserStatusWeb.mxml:38]
at com.facebook.graph.core::AbstractFacebook/handleRequestLoad()[C:\Users\MikeHunt\Work\facebookGraphApi\trunk\api\com\facebook\graph\core\AbstractFacebook.as:108]
at com.facebook.graph.net::FacebookRequest/dispatchComplete()[C:\Users\MikeHunt\Work\facebookGraphApi\trunk\api\com\facebook\graph\net\FacebookRequest.as:411]
at com.facebook.graph.net::FacebookRequest/handleDataLoad()[C:\Users\MikeHunt\Work\facebookGraphApi\trunk\api\com\facebook\graph\net\FacebookRequest.as:402]
at com.facebook.graph.net::FacebookRequest/handleURLLoaderComplete()[C:\Users\MikeHunt\Work\facebookGraphApi\trunk\api\com\facebook\graph\net\FacebookRequest.as:380]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
It says: "A term is not defined and has no properties.
So the result object is null in the getmehandler().
A big thanks to the person that solves this problem!!:)
Original comment by covemaek...@gmail.com
on 24 Feb 2011 at 8:40
Problem solved
Original comment by covemaek...@gmail.com
on 24 Feb 2011 at 1:21
Original comment by rovertn...@gmail.com
on 24 Feb 2011 at 4:06
Original issue reported on code.google.com by
covemaek...@gmail.com
on 23 Feb 2011 at 9:31