javascript - fb.ui error "An error occurred. Please try again later." -


hey guys have script i'm using share post website, on facebook. i'm using fb.ui sdk, , keep getting error:

"an error occurred. please try again later.".

it set pop when page loads.

i noticed app_id has no id in secure url facebook generates pop up. because hidden, or not being sent? here clipping of url:

"https://www.facebook.com/dialog/feed?app_id=&caption=info&"

here code:

index.php:

<html> <head>   <title>post facebook</title>   <script src="http://connect.facebook.net/en_us/all.js"></script> </head>   <body>   <div id="fb-root"></div>    <script>      window.fbasyncinit = function() {        fb.init({          appid      : '1404387053111932',          channelurl : 'http://website.com/fb/channel.html',          status     : true,          xfbml      : true       });    };     (function(d, s, id){      var js, fjs = d.getelementsbytagname(s)[0];      if (d.getelementbyid(id)) {return;}      js = d.createelement(s); js.id = id;      js.src = "//connect.facebook.net/en_us/all.js";      fjs.parentnode.insertbefore(js, fjs);    }(document, 'script', 'facebook-jssdk')); </script>  </body>   <script> fb.ui(   {     method: 'feed',     name: 'facebook dialogs',     link: 'http://www.website.com',     picture: 'http://www.website.com/images/logo.png',     caption: 'info',     description: 'infoinfoinfo'   },   function(response) {     if (response && response.post_id) {       alert('post published.');     } else {       alert('post not published.');     }   } ); </script> 

channel.html:

<script src="http://connect.facebook.net/en_us/all.js"></script> 

any appreciated!


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

java - What is the difference between String. and String.this. ? -