A RubyMotion wrapper for the Social Framework
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
lib
resources
spec
.gitignore
Gemfile
README.md
Rakefile
motion-social.gemspec

README.md

motion-social

This gem allows you to easily share content on Twitter and Facebook. One image is worth a thousand words and at the end of this readme we have 3.

Installation

Add this line to your application's Gemfile:

gem 'motion-social'

And then execute:

$ bundle

Don't forget to add the Frameoworks to your Rakefile

app.frameworks += ["Social", "Accounts"]

Usage:

class MyAwesomeViewController < UIViewController

  include MotionSocial::Sharing

  def sharing_message
    "I am using Motion-Social"
  end

  def sharing_url
    "http://www.rubymotion.com"
  end

  def sharing_image
    nil
  end

  def controller
    self # This is so that we can present the dialogs. 
  end

end

When you want to display the sharing dialogs just use:

post_to_twitter
post_to_facebook

twitter facebook

or display a dialog with Facebook and Twitter as options:

display_share_dialog

share dialog

Contributors:

  • Ivan Acosta-Rubio
  • Shigeaki Matsumura