Tôi có đoạn code sau để lấy mẫu dữ liệu người dùng facebookngoại lệ còn tự do: Lỗi: Permission denied cho <https://www.facebook.com> để có được tài sản Proxy.InstallTrigger
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'the_app_code_here_but_i_didn't right_it_here',
status : true,
cookie : true,
xfbml : true
});
};
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
</script>
<div class="fb-login-button">Login with Facebook</div>
và đây là code php để kéo dữ liệu sử dụng lớp facebook.php
$user_data = $this->facebook->getUser();
if(!empty($user_data))
{
$uid = $this->facebook->getUser();
$user = $this->facebook->api('/me');
if(!empty($user)) {
print_r($user_data);
die();
}
else
{
die("error");
}
}
else
{
die("error else");
}
tôi nhận được "lỗi khác" và khi tôi kiểm tra firebug tôi đã được lỗi sau "còn tự do ngoại lệ: lỗi: Permission denied cho https://www.facebook.com để có được tài sản Proxy.InstallTrigger "
Tôi googled cho nó và không có may mắn nghĩ .. Có một vấn đề với firefox như tôi đang sử dụng firefox 8?
Tại đây, id thảo luận về http://userscripts.org/topics/91081 này có thể hữu ích –