简体   繁体   English

如何从我的网站在Facebook中发布新闻源

[英]How to post news feed in facebook from my site

I have a site that allows a user to login using their facebook login id through a RPX system. 我有一个网站,允许用户通过RPX系统使用其Facebook登录ID登录。 When the user posts a comment in my site, I want it to automatically post the comment on their facebook wall too. 当用户在我的网站上发布评论时,我希望它也自动在他们的Facebook墙上发布评论。 How can I do this using Rails? 如何使用Rails做到这一点? I've been learning the facebooker plugin for a couple of days and still can't figure out how to do it. 我已经学习了几天的facebooker插件,但仍然不知道该怎么做。 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. 我从rpx处获得了用户的facebook电子邮件和ID,只想在他们的新闻提要/墙上张贴一些东西,就这么简单,这已经让我很头疼。

Thanks 谢谢

Ah, Facebook. 啊,Facebook。 You're in for some fun. 您在找点乐子。

I'm not sure how RPX works. 我不确定RPX的工作方式。 I know it abstracts the details so it can support multiple social networks. 我知道它抽象了细节,因此可以支持多个社交网络。

I've gotten this working using standard Facebook Connect (not RPX). 我已经使用标准的Facebook Connect(而不是RPX)进行了这项工作。 You need to ask the user for the status_update extended permission . 您需要向用户询问status_update 扩展权限 Once you get that, you can post status updates with Users.setStatus . 一旦获得该信息,就可以使用Users.setStatus发布状态更新。

I recommend looking into the RPX documentation to see if they have something similar. 我建议查看RPX文档,看看它们是否具有相似之处。

If you will create an RSS feed for each user, that you will be able to use Flog Blog - Facebook RSS service. 如果要为每个用户创建一个RSS提要,则可以使用Flog Blog -Facebook RSS服务。 It's just a thought. 这只是一个想法。 Try it. 试试吧。 might work... 可能有效...

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

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