Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
By BD Network.
Social Sharer is a Ruby on Rails Gem, allowing you to easily create Twitter and Facebook share dialogues.
Add this to your gemfile within your Rails project:
gem 'social_sharer', '0.1.4'
If you require a single URL to be shared across both social networks but require simple tracking, e.g. for Google Analytics you can use the options listed below:
{
url: 'http://thisisbd.com/',
twitter_message: 'This%20is%20BD'
}
This would have Facebook link to: http://thisisbd.com/?src=fb
and your tweet contents would be: This is BD http://thisisbd.com/?src=tw
You may also add an (optional) Twitter handle to be included into the message:
{
url: 'http://thisisbd.com/',
twitter_handle: '@thisisbd',
twitter_message: 'This%20is%20BD'
}
Your tweet contents would be: This is BD via @thisisbd http://thisisbd.com/?src=tw
If you provide different URLs for each social network, or want more flexible control over the URLs users are sharing, these options are for you:
{
individual_settings: true,
twitter: {
url: 'http://thisisbd.com/twitter_url',
message: 'This%20is%20BD'
},
facebook: {
url: 'http://thisisbd.com/facebook_url'
}
}
This would have Facebook link to: http://thisisbd.com/facebook_url
and your tweet contents would be: This is BD http://thisisbd.com/twitter_url
You may also add an (optional) Twitter handle to be included into the message:
{
individual_settings: true,
twitter: {
url: 'http://thisisbd.com/twitter_url',
handle: '@thisisbd',
message: 'This%20is%20BD'
},
facebook: {
url: 'http://thisisbd.com/facebook_url'
}
}
This would have Facebook link to: http://thisisbd.com/facebook_url
and your tweet contents would be: This is BD via @thisisbd http://thisisbd.com/twitter_url
Within your view:
<%= social_share_tags( @social_sharer_options ) %>
Social Sharer requires Ruby on Rails and has been tested on 4.x.
If you wish to submit a bug fix or feature, you can create a pull request and it will be merged pending a code review.
Social Sharer is licensed under the MIT License.
FAQs
Unknown package
We found that social_sharer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.