面子书贴到朋友的墙上 [英] facebook post to friend's wall

查看:78
本文介绍了面子书贴到朋友的墙上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我过去一直在自己的墙上张贴帖子.

I used following to post on my own wall.

$result = $app->facebook->api('/me/feed/',
                        'post',
                        $attachment);

效果很好.现在,我需要贴到我朋友的墙上.所以我用过,

which worked nicely. Now I need to post to my friend's wall. So I used,

$result = $app->facebook->api('/'.$rid.'/feed/',
                        'post',
                        $attachment);

这虽然不起作用.还有其他权限吗?

This, though is not working. Any extra permission or something?

推荐答案

根据该文档publish_stream应该是您所需要的.

According to the documentation, publish_stream should be all you need.

(如果这不起作用,那么您应该提供更多信息.您可以执行一些错误处理并检索某种错误代码吗?)

(If this does not work, then you ought to provide more information. Can you do some error handling and retrieve an error code of some kind?)

这篇关于面子书贴到朋友的墙上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆