Rails - How to access Facebook wall posts of a user - ruby-on-rails

I am building a Rails site for a friend. It is mainly going to be a static website with a few exceptions. On the homepage I would like to display the latest Facebook wall posts from a Facebook user's profile, that way my friend can post a status update on Facebook and it will be reflected on the homepage of the website. What would be the best way to go about implementing this? Should I be using the Facebook Graph API or be looking for a Facebook Ruby gem or is there some other way of doing this? Can someone please tell me what I should use to do this task? Thanks!

you may look into http://facebook-ruby.sourceforge.net/ or http://rfacebook.rubyforge.org/

Related

Allow users of my web app to post to their personal facebook page

I have read a lot about allowing users to log into my rails app via facebook omniauth, though I would like users, having loggeed in, to be able to post a to their own personal wall by simply clicking a button in my app. Is this possible? I'm not very new to rails but have never integrated facebook functionality and am very new to working with omniauth. I'm not looking for someone to spell out the specifics...just point me in the right direction! Thanks
According to Facebook documentation here and here, publishing a post to user's wall on behalf of the subject user is not allowed. Instead of this, they encourage the sharing ability.
I hope this is helpful.

IOS App suggest twitter friends to users?

Hi i have been searching for a while for this i want to implement a feature where if a user login my app through twitter she sees who she follows on twitter who already joined my app and gives her the opportunity to follow them on my app like Meerkat does for example.Im using rails for my backend if that healps.
Any help pointing me to right direction is much appreciated.
(PS: Linkedin does it with email but Im interested with only twitter).
Well after some more researching i found out that meerkat uses https://get.fabric.io/ to the best of my knowledge. im going to try it.

Rails integrate own website, Facebook and Twitter account as just one

I am new to Rails. Currently, i am building an app that will be able to login with facebook, twitter and also my own website account. i am thinking to do a user just like the Pinterest, but i don't know how to integrate them as just one account. Any one has any idea about this? Thank you.
OmniAuth may be what you want.
http://railscasts.com/episodes/241-simple-omniauth
you need something like this??
http://openid.net/developers/
but actually, when u trying to access the user's account(such as google,facebook, twitter), you have to get the permission from the users as well, so there will be a need to integrate both of those in once too.

Integration With Facebook

I've never used the FaceBook SDK before so I'm not sure what I should be using or whether what I'm thinking of can actually be done. But I want to try to integrate some Facebook functionality with my ASP.NET MVC3 application.
What I need to do:
I want to be able to access someone's Facebook account (granted their permission) and allow them to send out invitations to my website. But, when a friend clicks on the link in the invitation message (whether a wall post, PM... whatever), follows through and registers on the site, I want to be able to track that (maybe by appending the ID or username of the this user to the invitation link, and then extract it from the query string when the invited person/friend registers).
Questions:
From what I've read so far and according to this link, what I think I should be using is the Facebook Connect API. Am I right?
Is what I'm trying to achieve actually doable? Basically, can I append the username to the invitation link? Is Facebook okey with that?
Do you have any good resources other than the Facebook Developer Wiki? Share them please!
P.S: I do not want users to login to my website using their Facebook account. I have my own Membership system. I just want to allow them to invite their friends to register at my website and track that. More requirements might arise but for now that is all what I need.
Your help is appreciated!
EDIT:
Ok I went ahead and created some test app using the Developer FB app to do some experiments. One thing I do not understand though...
Canvas Page: The base URL of your app on Facebook.
Canvas URL: Facebook pulls the content for your app's canvas pages from this base URL.
So what exactly is the Canvas URL? From what I understand, it's a URL to a resource (page?) on my website which Facebook can display inside the Canvas Page, is that correct?
yes
Yes
Facebook documentation + facebook developers forum, that should be all for you. Also, as you are using asp.net mvc, facebooksdk discussion will help you also if you use that library. I will stringly recommend to use that library.
Also, it seems, you are a beginner on facebook api with c#. If so, you can consider my blog post for beginners on facebook open graph api tutorial in c#. There also some other related posts also.Hope you may like them.
Let me know if you wanted to know something else also specifically.
Yes
Yes
Nope. The Developer Wiki has its issues but the Facebook Docs usually solve your problems.

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. 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
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.
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...

Resources