-2

フラッシュを介して Facebook アプリケーションからゲーム スコアを更新しようとしています。

function postdatas(){ 

var postpath="post.php";       
var my_vars:URLVariables = new URLVariables();
my_vars.times = encrypt(game.stopwatch.minText.text+"."+game.stopwatch.secText.text, "PheNi3$@$%!");

var my_url:URLRequest = new URLRequest(postpath);
my_url.method = URLRequestMethod.POST;
my_url.data = my_vars;

var my_loader:URLLoader = new URLLoader();
my_loader.dataFormat = URLLoaderDataFormat.VARIABLES;
my_loader.load(my_url);
}

postdatas();

Post.php で

Facebookのユーザー情報を取得して、彼の壁のメッセージを更新し、データベースのスコアを更新しています

$fbme  =   $facebook->api('/me');

しかし、「PHP Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user」が表示されます

4

1 に答える 1

0

最終的にそれを理解しました、signedrequestをpost.phpに渡す必要があります

于 2013-03-06T14:09:00.377 に答える