0
Facebookの実装に経験がある方は、Adobe AirとiPadを接続してください。私はAPI(http://code.google.com/p/facebook-actionscript-api/)に問題があり、エラーが表示され続けます。私はウェブのためのフラッシュバージョンのための同じコードを使用して、それは大丈夫動作します。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