Integrating facebook,twitter and google plus into another web app, so that the posts in that app are posted write away as status in facebook,tweets in twitter and status in google plus.I am developing this using ruby on rails.I searched a lot about this but didn’t find anything which would work for me.Can post some links or ideas which would be helpful for this.
Integrating facebook,twitter and google plus into another web app, so that the posts in
Share
I’d suggest to use Koala ( https://github.com/arsduo/koala/wiki ) to interface with Facebook. It’s by far the best maintained fb library out there.
Otherwise, you should learn one thing or two about OAuth2:
Use https://github.com/sferik/twitter to interact with twitter.
For google, I’ve found that implementing the XML chat manually is easier than using any existing API wrapper. To convert XML responses into data, you an use a combination of the
Response#parsedmethod of oauth2 gem andArray.wrapof ActiveSupport (there is no way for an XML parser to tell a single node to a possibly repeated node (so an array) that appears just once, avery big drawback of XML in my point of view)Or you can directly ask google for JSON, so you already have the data correctly structured.
And, as @brendan-benson very correctly says, do only API calls in background workers, never in your normal request/responses cycle.