简体   繁体   English

Facebook JavaScript ui可以发布到墙上,页面还是消息?

[英]Facebook javascript ui to post to wall, page or message?

I've managed to get the share button to work but it does not format the post correctly for each image, so I tried the FB.ui method, but that only seems to allow me to post to my own wall??? 我设法使共享按钮正常工作,但是它不能正确格式化每个图像的帖子,因此我尝试了FB.ui方法,但这似乎只能使我发布到自己的墙上? Am I completely not getting the FB Api?? 我完全不会得到FB Api吗? The documentation pretty much SUCKS on developer facebook page... 文档在开发者Facebook页面上几乎是糟透了...

var fbConfig = {
            method: 'feed',
            display: 'popup',
            name: scope.content.post.post_title,
            link: scope.link,
            picture: scope.content.image.src,
            caption: scope.content.post.post_title + ' is featured on The Sexiest Non Profit Ever\'s website',
            // description: 'a slightly longer description...',
            // redirect_uri: 'http://www.thesexiestnonprofitever.org/'
        };

FB.ui(fbConfig, function(response){

        });

Take publish_stream permission to post on other's wall. publish_stream权限才能在其他人的墙上张贴。 Without this permission you cannot post any thing on the other's wall. 没有此许可,您将无法在对方的墙上张贴任何东西。 This is necessary 这是必要的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM