如何从我的网站在Facebook中发布新闻提要 [英] How to post news feed in facebook from my site
问题描述
我有一个站点,允许用户通过RPX系统使用其Facebook登录ID登录.当用户在我的网站上发布评论时,我希望它也自动在他们的Facebook墙上发布评论.如何使用Rails做到这一点? 我已经学习了几天的facebooker插件,但仍然不知道该怎么做. 有没有简单的方法可以做到这一点?我从rpx处获得了用户的Facebook电子邮件和ID,只想在他们的新闻提要/墙上张贴一些东西,就这么简单,这已经让我头疼如何解决这个问题.
I have a site that allows a user to login using their facebook login id through a RPX system. When the user posts a comment in my site, I want it to automatically post the comment on their facebook wall too. How can I do this using Rails? I've been learning the facebooker plugin for a couple of days and still can't figure out how to do it. Are there any easy ways to do this? I got the user's facebook email and id from rpx and just want to post something on their news feed/wall, it is just this simple and it already caused me a headache on how to solve this.
谢谢
推荐答案
啊,Facebook.您在找点乐子.
Ah, Facebook. You're in for some fun.
我不确定RPX的工作方式.我知道它抽象了细节,因此可以支持多个社交网络.
I'm not sure how RPX works. I know it abstracts the details so it can support multiple social networks.
我已经使用标准的Facebook Connect(而不是RPX)进行了这项工作.您需要向用户询问status_update
扩展权限.一旦获得该信息,就可以使用 Users.setStatus
发布状态更新.
I've gotten this working using standard Facebook Connect (not RPX). You need to ask the user for the status_update
extended permission. Once you get that, you can post status updates with Users.setStatus
.
我建议查看RPX文档,看看它们是否具有相似之处.
I recommend looking into the RPX documentation to see if they have something similar.
这篇关于如何从我的网站在Facebook中发布新闻提要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!