0

我的 Facebook 应用程序有问题。该应用程序目前正在运行,我收到了来自 Facebook 的电子邮件:

我们发现您的应用违反了以下政策,您需要在太平洋标准时间 2012 年 4 月 17 日星期二下午 5:00 之前解决此问题,否则您的应用可能会受到执法行动。

我们的政策要求您的应用具有隐私政策,告诉用户您将使用哪些用户数据以及您将如何使用、显示、共享或传输该数据,并且您将在开发者应用程序中包含您的隐私政策 URL(请参阅平台政策 II.3,http://developers.facebook.com/policy)。

我们注意到您的应用在权限对话中缺少隐私政策。请在 developer.facebook.com/apps/[YOUR_APP_ID]/auth 上更新开发者应用程序中的隐私政策 URL 字段。此外,请检查您的应用程序,以确保您也在您的网站或应用程序内显示您的隐私政策。

我的应用程序仅使用基本用户信息。

我正在使用 Javascript SDK 进行基本用户身份验证,但我不知道如何向用户询问正确的权限。

<div id="fb-root"></div>
 <script>
 window.fbAsyncInit = function() {
FB.init({
  appId      : '[APPID]', // App ID
  channelUrl : '[URL]', // Channel File
  status     : true, // check login status
  cookie     : true, // enable cookies to allow the server to access the session
  xfbml      : true  // parse XFBML
});  
var login = false;
 FB.getLoginStatus(function(response) {
          if (response.status === 'connected') {
              console.log('connected');
              login=true;
                // the user is logged in and connected to your
                // app, and response.authResponse supplies
                // the user's ID, a valid access token, a signed
                // request, and the time the access token 
                // and signed request each expire
                var uid = response.authResponse.userID;
                var accessToken = response.authResponse.accessToken;
          }
          else{
              FB.login(function(response) {
               if (response.authResponse) {
                 console.log('Welcome!  Fetching your information.... ');
                 FB.api('/me', function(response) {
                   console.log('Good to see you, ' + response.name + '.');
                   if(login===false)
                   {
                       window.open("http://www.facebook.com/EnergyZuerich/app_332399760133904", "_top");
                   }
                   //window.location.href=window.location.href;
                   //FB.logout(function(response) {
                     //console.log('Logged out.');
                   //});
                 });
               } else {
                 console.log('User cancelled login or did not fully authorize.');
               }    
             }, {scope: 'email'});
          }});

// Additional initialization code here
 };
  (function() {
     var e = document.createElement('script');
      e.async = true;
     e.src = document.location.protocol +
     '//connect.facebook.net/en_US/all.js';
     document.getElementById('fb-root').appendChild(e);  
   }());
 // Load the SDK Asynchronously
(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>

有人可以帮忙吗?

4

1 回答 1

1

他们的电子邮件清楚地告诉您该怎么做。即为您的隐私政策创建一个可公开访问的 URL,并为您的应用程序更新 URL 字段。您可以在管理应用程序的 Facebook 上执行此操作。

于 2012-04-16T07:38:03.230 回答