No commit activity in last 3 years
No release in over 3 years
Great for adding share on Facebook links in emails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0

Runtime

 Project Readme

Facebook Share Link

Builds a link to share something to Facebook based on the Facebook Feed Dialog: http://developers.facebook.com/docs/reference/dialogs/feed/

Reason for being

I needed this to put facebook share links in emails where the javascript facebook dialogs aren't available.

Install

gem install facebook_share_link

Or add

gem 'facebook_share_link'
to your Gemfile

Usage

Mininum

FacebookShareLink.link(
  app_id: 11111111111, 
  redirect_uri: "http://yoursite.com/return")

Full usage

FacebookShareLink.link(
  app_id: 11111111, 
  link: "https://github.com/joshcrews", 
  description: "Josh Crews on Github",
  message: "I just found Josh Crews on Github",
  picture: "http://joshcrews.com/logo.png", 
  caption: "Josh Crews dot Com",
  redirect_uri: "http://google.com/q=Josh Crews"
)

Outputs

http://www.facebook.com/dialog/feed?app_id=11111111&caption=Josh+Crews+dot+Com&description=Josh+Crews+on+Github&link=https%3A%2F%2Fgithub.com%2Fjoshcrews&message=I+just+found+Josh+Crews+on+Github&picture=http%3A%2F%2Fjoshcrews.com%2Flogo.png&redirect_uri=http%3A%2F%2Fgoogle.com%2Fq%3DJosh+Crews

Note: that link won't work because that's a made up app_id