从页面或应用程序发布到Facebook用户的墙壁 [英] Post to a Facebook user's wall from a page or app

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

问题描述

我可以让用户授权我的应用程序,稍后我可以使用以下代码发布在墙上:

I can get a user to authorize my app and later on I can post on their wall with this code:

new Facebook(...);
$facebook->api('/'.$uid.'/feed', 'post', array('message' => 'My app says hi'));

这是有效的,但用户墙上出现的帖子是由用户(它旁边有通过我的应用的帖子旁边有他们的脸和名字)。有没有办法通过我的个人资料照片和名称旁边的应用程序(或我的页面)看起来这个帖子?

This works but the post that appears on the user's wall is by the user (it has their face and name next to the post with "via My App" next to it). Is there a way to have the post appear to be by the app (or my page) with my profile photo and name next to it?

我尝试了许多变体以上内容包括明确地获取应用访问令牌如文档,但这样做同样

I have tried many variations of the above including getting the app access token explicitly as documented but this gives the same result.

应用或页面是否可以在用户墙上发布,而不是假装成为用户?

Is it possible for an app or page to post on a user's wall as itself rather than pretending to be the user?

推荐答案

可以在用户的​​墙上作为应用或页面发布。即使有可能,也是不推荐!

It's not possible to post on the user's wall as app or page. And even if it's possible, it's not recommended!

如果您想通知您的粉丝有关某些内容将在您的页面的墙上发布,那么最好的方式是您的页面)此帖子将显示在你的粉丝新闻饲料

Your best bet if you want to notify your fans about something is to post on your page's wall (as your page) where this post will appear in your fans news feed.

此外,这可以为您的网站粉丝(喜好者): https://developers.facebook.com/blog/post/465/

Also this can be done for your website fans (Likers): https://developers.facebook.com/blog/post/465/

这篇关于从页面或应用程序发布到Facebook用户的墙壁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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