我想使用FacebookMobile圖形API的動作3.當我運行 FacebookMobile.init(MY_AP_ID,facebookInitHandler);初始化()失敗,OAuthException
我的回調對於成功對象爲空,而false爲「OAuthException」錯誤「必須使用活動訪問令牌來查詢有關當前用戶的信息。」
我在IOS和Android上都遇到這個錯誤。我有可能在facebook上設置錯誤嗎?
這是在init()中引發的,所以我不想查詢有關任何用戶的任何信息。我花了幾個小時,沒有運氣。任何幫助將不勝感激。
if(FacebookMobile.getSession() == null){
FacebookMobile.init(MY_AP_ID, facebookInitHandler);
}
//sets facebook session
private function facebookInitHandler(success:Object, fail:Object):void{
if(success != null){
trace("facebook init success");
//publish_stream is required to post messages to the wall
FacebookMobile.login(facebookLoginHandler, stage, ["publish_stream"]);
}else{
trace("Facebook initialization falied- " + String(fail.error.message));
displayGeneralAlert("An error occurred", "Unable to initialize Facebook component");
}
}
如果iOS無法運行Flash,該怎麼辦? – 2012-01-15 03:50:53
我在使用AS3的Adobe Flex中運行它,並在IOS上運行。我希望這不是我的問題-1'd – jln646v 2012-01-15 04:07:18
你能粘貼完整的oauthexception?他們通常在那裏有原因。我的建議是讓它首先在網絡上工作(js,php,無論),以消除工作流程中的錯誤 – divillysausages 2012-01-15 16:02:30