Feed Dialog - “An error occurred. Please try again later”

╄→гoц情女王★ 提交于 2019-12-06 14:18:08

In my case i just set my application at the facebook developer site to be public

You have a syntax error on the description: line. this code:

FB.ui(
    {
        method: 'feed',
    name: 'Facebook Dialogs',
    link: 'http://developers.facebook.com/docs/reference/dialogs/',
    picture: 'http://fbrell.com/f8.jpg',
    caption: 'Reference Documentation',
    description: 'Dialogs provide a simple, consistent interface for applic\
ations'
    },
    function(response) {
        if (response && response.post_id) {
            alert('Post was published.');
        } else {
            alert('Post was not published.');
        }
    }
 );

Works on fbrell.com for me.

eosgood is right, you have a type-o in your code. However, for others, this might help...

I had the same problem. Things to try:

  • Move the FB.ui javascript to the very end of the page, so it's the last script executed.
  • Doublecheck to make sure you have <div id="fb-root"></div> immediately after the opening body tag.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!