开发者

facebook getResponse() method - allow login

I am c开发者_如何学编程urrently working on facebook. I would like to ask how to GetResponse() from the http page. I have the url to the Facebook login that will login using my c# application but when i click allow the exploer page links to error. Why? WHat am i doing wrong? Should I redirect to another page after the client clicks allow? How to programatically do that? THX. In my url i have a redirect option.


<script>
     FB.init({ 
        appId:'YOUR_APP_ID', cookie:true, 
        status:true, xfbml:true 
     });
     FB.api('/me', function(user) {
       if(user != null) {
          var image = document.getElementById('image');
          image.src = 'https://graph.facebook.com/' + user.id + '/picture';
          var name = document.getElementById('name');
          name.innerHTML = user.name
       }
     });
   </script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜