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