views:

1340

answers:

2

Hello all,

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.

Thanks

+2  A: 

Ah, Facebook. You're in for some fun.

I'm not sure how RPX works. I know it abstracts the details so it can support multiple social networks.

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.

I recommend looking into the RPX documentation to see if they have something similar.

Luke Francl
Thx lot Luke, I just realized that Facebook have 2 set of api, API Developer for application and API Connect for outer site, when I do googling with "How to post News Feed in facebook in rails" it always end up with Developer API solution. So thx once again Luke u lift up my headache :)
gkrdvl
Glad to hear it!
Luke Francl
+1  A: 

If you will create an RSS feed for each user, that you will be able to use Flog Blog - Facebook RSS service. It's just a thought. Try it. might work...

Sorantis