Facebook用户墙 [英] facebook post users wall

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

问题描述

我有a@yahoo.com帐号,并且还创建了Facebook帐户
另外两个用户还有b@yahoo.com和c@yahoo.com的facebook帐户。



b@yahoo.com和c@yahoo.com帐户持有人按下
$ b$ba@yahoo.com持有人拥有的粉丝页面按钮。



现在作为粉丝专页[a@yahoo.com],但不像其他人一样,我喜欢发布一些
消息,附件 [到墙壁

所选用户+喜欢粉丝页面的用户]



现在我只选择b@yahoo.com用户。

代码如下:
我接受了manage_pages,offline_access,publish_stream权限。

 code> $ page_id =YYYYYYYYYYYYYYYYYY; 
$ page_access_token =;
$ result = $ facebook-> api(/ me / accounts);
foreach($ result [data] as $ page){
if($ page [id] == $ page_id){
$ page_access_token = $ page [access_token ]。
break;
}
}
$ data [access_token] = $ page_access_token;
$ data [message] =aaaaaaaaaaaaaaaaa;
$ data [name] =ttttttttttttt;
$ data [caption] =cccccccccccccc;
$ data [link] =http://www.facebook.com/pages/CCCCC/OOOOOsk=app_UUUUUUUUUUU;
$ data [description] =aaaaaaaasdfsfsdf;
$ data [picture] =http://cdn1.kingdomsofcamelot.com/fb/e2/src/img/fte/army_troop.png;

$ post_id = $ facebook-> api(/ $ page_id / feed,post,$ data);

但上述代码发布消息,附件到所有喜欢
的用户的墙壁粉丝页面,但我只写特定用户的帖子。



我该如何实现?或者是否有可能只传递目标用户ID?

解决方案

我不完全相信我理解你的问题。 / p>

您的代码将帖子发布到粉丝专页墙上,而不是所有喜欢粉丝专页的用户的墙壁。



作为粉丝页面,即使他是粉丝页的粉丝,也不能写到用户的墙上。


i have a@yahoo.com account and also created facebook account another two users have also facebook account by b@yahoo.com and c@yahoo.com per each.

b@yahoo.com and c@yahoo.com account holder pressed like button of the fan page owned by
a@yahoo.com holder.

now as a fan page [a@yahoo.com] but not as others, I like to post some message,attachment [to the wall of
the selected users + users who liked fan page]
among all of the users.

now I select only b@yahoo.com user.

the code is given below: I accepted manage_pages,offline_access,publish_stream permission.

$page_id = "YYYYYYYYYYYYYYYY";
$page_access_token = "";
$result = $facebook->api("/me/accounts");
foreach($result["data"] as $page) {
    if($page["id"] == $page_id) {
        $page_access_token = $page["access_token"];
        break;
    }
}
$data["access_token"] = $page_access_token;
$data["message"] = "aaaaaaaaaaaaaaaaa";
$data["name"] = "ttttttttttttt";
$data["caption"] = "cccccccccccccc";
$data["link"] = "http://www.facebook.com/pages/CCCCC/OOOOOsk=app_UUUUUUUUUUU";
$data["description"] = "aaaaaaaasdfsfsdf";
$data["picture"] = "http://cdn1.kingdomsofcamelot.com/fb/e2/src/img/fte/army_troop.png";

$post_id = $facebook->api("/$page_id/feed", "post", $data);

but the above code post the message,attachment to the wall of all users who liked the fan page,but I only write post to the specific users.

how can I achieve? or is there any possiblity to pass the target users id only?

解决方案

I'm not entirely sure i understood your problem.

Your code posts a post to the fan-page wall - not to the "wall of all users who liked the fan page".

As a fan page, you can not write to a user's wall, even if he is a fan of your fan-page.

这篇关于Facebook用户墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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