0
これは私が把握しようとしてきたものですが、どうやってそれを行うのか正確にはわかりません。私はFacebookにログインするフレックスアプリケーションを持っていますが、その後はFacebookのAPIにアクセスできません。罰金にJavescriptログイン後のFacebook APIの使用
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<!-- Include support librarys first -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
//This example uses the javascript sdk to login before embedding the swf
var APP_ID = "[My App ID Here]";
var REDIRECT_URI = "http://apps.facebook.com/isotesthoskins/";
var PERMS = "publish_stream,offline_access"; //comma separated list of extended permissions
function init() {
FB.init({appId:APP_ID, status: true, cookie: true});
FB.getLoginStatus(handleLoginStatus);
}
function handleLoginStatus(response) {
if (response.session) { //Show the SWF
//A 'name' attribute with the same value as the 'id' is REQUIRED for Chrome/Mozilla browsers
swfobject.embedSWF("isotest.swf", "flashContent", "760", "500", "9.0", null, null, null, {name:"flashContent"});
} else { //ask the user to login
var params = window.location.toString().slice(window.location.toString().indexOf('?'));
top.location = 'https://graph.facebook.com/oauth/authorize?client_id='+APP_ID+'&scope='+PERMS+'&redirect_uri='+REDIRECT_URI+params;
}
}
$(init);
</script>
、すべてのログを、私がログインしていた後、私はアプリケーションでこれをしようとすると、何も起こりません。今、私は、ログインするために、このHTMLを使用しています。
Facebook.api("/me", function(response){
changeText.text = response.name;
});
これはjavascriptログインによって行われたため、私は初期化する必要はありません。私はそれについて間違っているかもしれません。どんな入力をいただければ幸いですか?前もって感謝します!