Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrate social media links #9

Open
5 tasks
jamemackson opened this issue May 22, 2015 · 0 comments
Open
5 tasks

integrate social media links #9

jamemackson opened this issue May 22, 2015 · 0 comments

Comments

@jamemackson
Copy link
Member

actual list to be finalized with client

  • facebook like and share buttons
    • create a gallery 13 facebook app
    • generate gallery13 share code & link syntax
  • tweet about [page]
  • share on pinterest (two pinterest pages, one for art and one for events)

found this SO post about doing this within an ember app.
http://stackoverflow.com/questions/23872888/fb-like-in-ember-app

basically says that we need to add this to the component we create as a wrapper for the FB button so that the fb js will reparse the link

setupFbLike: function(){
     FB.XFBML.parse();
  }.on('didInsertElement')

example script and link syntax
https://developers.facebook.com/docs/plugins/like-button

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4&appId=[YOURAPPIDHERE]";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://gallery13.com" data-layout="button" data-action="recommend" data-show-faces="true" data-share="true"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant