Windows phone 7 Facebook签入和windows phone

Windows phone 7 Facebook签入和windows phone,windows-phone-7,facebook-javascript-sdk,checkin,Windows Phone 7,Facebook Javascript Sdk,Checkin,我有一个脚本,基本上让用户能够在单击某个特定位置时签入该位置。单击后,每次都会将它们检入相同的位置 在桌面上,这很好用,我怀疑它在Android上也能用。我有一个可湿性粉剂,因此显然我想让它在那里工作。这项功能基本上只在移动设备上使用,所以让它跨设备工作非常重要 现在,我们来谈谈实际问题。单击WP上的签入按钮后,它将加载一个空白页并挂起。虽然这可能是一个信号,它可能已经登记,当我看它没有。所以它挂在那里什么也不做 这是它挂起的URL: 这是代码: var button; (fu

我有一个脚本,基本上让用户能够在单击某个特定位置时签入该位置。单击后,每次都会将它们检入相同的位置

在桌面上,这很好用,我怀疑它在Android上也能用。我有一个可湿性粉剂,因此显然我想让它在那里工作。这项功能基本上只在移动设备上使用,所以让它跨设备工作非常重要

现在,我们来谈谈实际问题。单击WP上的签入按钮后,它将加载一个空白页并挂起。虽然这可能是一个信号,它可能已经登记,当我看它没有。所以它挂在那里什么也不做

这是它挂起的URL:

这是代码:

var button;

        (function(d){
          var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
          if (d.getElementById(id)) { return; }
          js = d.createElement('script'); js.id = id; js.async = true;
          js.src = "//connect.facebook.net/en_US/all.js";
          ref.parentNode.insertBefore(js, ref);
        }(document));

        window.fbAsyncInit = function() {
          FB.init({
            appId      : '260445377421174',
            channelUrl : '//www.staffscuesociety.com/checkin/channel.html'
          });

          button = document.getElementById('checkinWidget');
          if (!button) return;
          if (!getPost()) {
            allowCheckin();
          } else {
            allowUndo();
          }
        };

        function setPost(value) {
          var d = new Date();
          d.setDate(d.getTime() + (10 * 60 * 1000));
          document.cookie = 'post=' + escape(value) + ';expires=' + d.toUTCString();
        }

        function getPost() {
          return getCookie('post');
        }

        function getCookie(key) {
          currentcookie = document.cookie;
          if (currentcookie.length > 0) {
            firstidx = currentcookie.indexOf(key + '=');
            if (firstidx != -1) {
              firstidx = firstidx + key.length + 1;
              lastidx = currentcookie.indexOf(';', firstidx);
              if (lastidx == -1) {
                lastidx = currentcookie.length;
              }
              return unescape(currentcookie.substring(firstidx, lastidx));
            }
          }
          return '';
        }

        function checkin() {
          allowNothing();
          FB.login(function(response) {
            if (response.authResponse) {
              FB.api('/me/permissions', function (permissions) {
                if (permissions.data.length > 0 && permissions.data[0].publish_stream) {
                  FB.api('/me/feed', 'post', { message: null, place: '117072761683514' }, function(post) {
                    if (!post || post.error) {
                      showError();
                    } else {
                      setPost(post.id);
                      allowUndo();
                    }
                  });
                } else {
                  allowCheckin();
                }
              });
            } else {
              allowCheckin();
            }
          }, {scope : 'publish_stream'});
        }

        function undo() {
          allowNothing();
          FB.api('/' + getPost(), 'delete', function(response) {
            setPost('');
            allowCheckin();
          });
        }

        function allowNothing() {
          button.onclick = function() { };
          button.className = 'pressed';
        }

        function allowCheckin() {
          button.onclick = checkin;
          button.className = '';
        }

        function allowUndo() {
          button.onclick = undo;
          button.className = 'pressed tick';
        }

        function showError() {
          button.className = 'pressed error';
        }

    }

在实际的HTTP请求/响应中发送和接收什么?我无法在手机上查看。。