English 中文(简体)
“财产清单之后”功能FB。 所有js案次
原标题:"missing } after property list" at function FB.subclass of all.js file
  • 时间:2011-10-18 05:30:39
  •  标签:
  • facebook

我在Facebook上申请,就像FB开发商网站的辅导员一样。 我在使用Javascript SKD这一步骤时发现错误,我试图获得这一功能,这确实是不正确的。

“Error在使用Javascript


让我更多地介绍我的申请:

Here is my settings:

Summary             
App ID/API Key                              App Secret
xxxxxxxxxxxxxx                              xxxxxxxxxxxxxxxx

Canvas Page                                 Canvas URL
https://apps.facebook.com/ibattleship/      http://192.168.11.154:8091/

Secure Canvas URL                           Canvas FBML/iframe
https://192.168.11.154/                     iframe 

Contact Email                               Support Email
xxxxxxx@gmail.com                           xxxxxx@gmail.com

And index.php file:

<html xmlns:fb="https://www.facebook.com/2008/fbml">
<body>
<div id="fb-root"></div>
<script>
    window.fbAsyncInit = function() {
        FB.init({
            appId      :  <?php echo APP_ID ?> , // App ID
            channelURL :  //192.168.11.154:8091/channel.html , // Channel File
            status     : true, // check login status
            cookie     : true, // enable cookies to allow the server to access the session
            oauth      : true, // enable OAuth 2.0
            xfbml      : true  // parse XFBML
        });     
    };

    // 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));
    // Additional initialization code here  
</script>
Hello, world.
</body>
</html>

And the channel.html file

<?php
  $cache_expire = 60*60*24*365;
  header("Pragma: public");
  header("Cache-Control: maxage=".$cache_expire);
  header( Expires:  .gmdate( D, d M Y H:i:s , time()+$cache_expire).  GMT );
?>

<script src="//connect.facebook.net/en_US/all.js"></script>

但是,当我管理这一页时,我会发现上述错误。 我是否误解了什么?

最佳回答

这是Facebook Javascript SDK的ug。

问题回答

暂无回答




相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签