I'm using a UIWebView to auth and make Facebook Graph API calls. To Log out, I'm trying to send this:
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
        FB.init({
            appId   : "01234567890..."
            status  : true,
            cookie  : true, 
            oauth: true,
            xfbml   : true
        });
        FB.getLoginStatus(function(response) {
            // nothing in here is ever called!!!
        }
</script>
but the response to getLoginStatus never gets called ... so my question is is there a better way to log out? I heard some blogs saying my 开发者_开发百科developer facebook account had to match the domain of my app. Is that the case? It's running in iOS though so how can it match?
I was never able to get this working so I just used the Graph API from the facebook iOS SDK:
https://github.com/facebook/facebook-ios-sdk
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论