Rails integrate own website, Facebook and Twitter account as just one - ruby-on-rails

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.

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.

Automatic login on facebook from my site

I am working on a web application, I am using graph API with php sdk for accessing the facebook features.
I am using facebook connect and it is working fine for login, but every time a user come to my site and get login by using the login button.
I want to make this automatic, Is there any way that when users come to my site they get logged in automatically.
How can I achieve this..
anybody help please.
thanks in advance.
Danish
If the user does not explicitly authorize you to get some private data from his Facebook account (included his Facebook ID), you can not get them.
I cannot think of a way to get the Facebook ID without the authorization of the user. So no way for you to automatically log in users.
Hope that helps.
I would say that maybe you shouldn't make it to connect automatically, some viewers of your website might not be very happy that as soon as they get there they are automatically logged in with their facebook profiles, pictures, information, etc.
Also because there could be another one's facebook already connected on the same computer, but still...
My advice would be to just leave a button to login when the user wants.

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.

Rails - How to access Facebook wall posts of a user

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/

Resources