0
有没有人有过在Adobe iPad上实现Facebook连接iPad的经验。我遇到了API(http://code.google.com/p/facebook-actionscript-api/)的问题,并一直向我抛出错误。我已经为网页的Flash版本使用了相同的代码,并且它工作正常。在iPad上连接Facebook(adobe air)
错误:
C:\Documents and Settings\SESA151424\My Documents\Work\projects\Clipsal iSelector\Air\src\com\facebook\graph\core\AbstractFacebook.as, Line 313 1061: Call to a possibly undefined method toString through a reference with static type com.facebook.graph.data:FQLMultiQuery.
代码
import com.facebook.graph.Facebook;
private function init():void{
Facebook.init(APP_ID, onInit);
TweenPlugin.activate([TintPlugin, ColorTransformPlugin]);
this.setUpProjectSection();
}
private function socialSignin(e:Event){
var opts:Object = {scope:"publish_stream, user_photos"};
//Facebook.login(onLogin, opts);
}
private function onLogin(result:Object, fail:Object):void{
if (result) {
//closeModalDialoge(new MouseEvent(MouseEvent.CLICK));
_mainContainer.parent.facebookStatus.text = JSON.encode(result);
_userInfo = ['result.uid', 'result.accessToken'];
Facebook.api('/me', onCallApi, null, 'GET');
}else{
//_mainContainer.parent.facebookStatus.text = "Not Logged In\n";
}
}
private function onCallApi(result:Object, fail:Object):void{
//_mainContainer.parent.facebookStatus.text += '/n\n';
var options:Object = {
username : _userInfo[0],
password : _userInfo[1],
firstname : result.first_name,
lastname : result.last_name,
name : result.name,
location : result.location,
gender : result.gender,
hometown : result.hometown
}
_user.socialSignin(options);
//_mainContainer.parent.facebookStatus.text += JSON.encode(result);
}
没有人有什么建议? – Bruce 2012-05-01 13:19:02