I’m set up devise and omni-auth for both twitter and Facebook and now I’d like to allow users post a tweet or Facebook post from my app. I’m looked all over and confused on where to start for this. For right now I just want it to be a dummy post, doesn’t need to include anything from my rails app.
If you are looking for an example app for posting on twitter then you may check it out here with a working app posting on twitter:
https://github.com/railscasts/359-twitter-integration
Hope you may find it useful
To post tweets on Twitter you can go for Twitter gem.
Read the documentation here
For Facebook you can go for Koala gem
Read the documentation here
Related
I would like to send notifications on their Facebook global icon when they get a comment in my app. And I found that Facebook offers us an API.
https://developers.facebook.com/docs/games/notifications
And I know that
I should put the code below in my rails app.
POST /{recipient_userid}/notifications?access_token= … &template= … &href= …
I, however, can't understand where to put this code. And I have no idea how to realize this only when my app users get a comment. Could you help me?
You should be using Graph API
To use Graph Api with Ruby you can use Koala
Koala is a Facebook library for Ruby, supporting the Graph API (including the batch requests and photo uploads), the REST API, realtime updates, test users, and OAuth validation.
OR
fb_graph
Both are fairly simple to use, once you have oauth_access_token which you can get by an OAuth strategy for authenticating users against your Facebook App. You may want to have a look at omniauth-facebook.
Informative blogs are out there, should be good to get you started.
http://blog.yangtheman.com/2012/02/09/facebook-connect-with-rails-omniauth-devise/
https://coderwall.com/p/bsfitw
can anyone tell me the get start with the facebook API using koala and devise. Is there any availability to get users based on the access token. I also want to know how to post it in free heroku web hosting.
I want a nice tutorial go through this.
thanks in advace
Finally i completed my task using fb_graph without need for devise. I posted it in following heroku url http://arcane-hamlet-5439.herokuapp.com
https://devcenter.heroku.com/articles/git tutorial helps me a lot to push it into heroku
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/
I hava a Rails application, I need to integrate Facebook. User can login with Facebook account and get his reviews in facebook and so on, how to deal with this case in rails? thanks!
Facebooker is no longer supported I recommend using Koala gem: https://github.com/arsduo/koala/wiki
There is a very comprehensive article here: http://www.packtpub.com/article/facebook-application-development-ruby-on-rails
And several existing plugins for this purpose like 'rfacebook', 'facebooker' or 'facebook-rails'. 'Facebooker' definitely has Facebook Connect abilities.
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...