Giter VIP home page Giter VIP logo

klubbdinmamma.github.io's People

Contributors

dentarg avatar dependabot[bot] avatar ellensrns avatar kdmgithub avatar oliviaenroth avatar rossocors4 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

klubbdinmamma.github.io's Issues

Save photos from Facebook in repo

Idea to address #1:

  • Adjust facebook photos plugin to download and save thumbnails and full size images in assets/img/facebook_photos
  • Adjust render to use local files

Pros:

  • doesn't rely on there being regular deploys as #2 does
  • everything needed is saved in the repo
  • would guard against albums being removed from Facebook

Cons:

  • more development needed than #2
  • even bigger repo, we are currently at ~150M
  • perhaps too big repo?

Handle Facebook rate limiting

Set FORCE_FACEBOOK_DATA_DOWNLOAD to true when TRAVIS_EVENT_TYPE is "cron".

Should make for faster builds when manually pushing updates of the site.

cron build error

https://travis-ci.org/klubbdinmamma/klubbdinmamma.github.io/builds/202775320

Deploying application
+git config --global credential.helper store
+git config user.name Auto-deploy via Travis CI
+git config user.email [email protected]
+git checkout _data/facebook
+git rev-parse --short HEAD
+REV=59741a5
+git fetch origin master:master
remote: Counting objects: 4371, done.
remote: Compressing objects: 100% (881/881), done.
remote: Total 4371 (delta 2173), reused 4345 (delta 2151), pack-reused 0
Receiving objects: 100% (4371/4371), 2.25 MiB | 0 bytes/s, done.
Resolving deltas: 100% (2173/2173), completed with 8 local objects.
From https://github.com/klubbdinmamma/klubbdinmamma.github.io
 * [new branch]      master     -> master
+git checkout master
error: The following untracked working tree files would be overwritten by checkout:
	_data/facebook/photos_1436455846406222.json
Please move or remove them before you can switch branches.
Aborting
Script failed with status 1
failed to deploy

Refresh Facebook CDN URLs on deploy

Idea to address #1:

  • Make _plugins/remote_facebook_photos.rb read app_secret from ENV (as a fallback, if possible? to not need ENV locally (e.g. Windows))
  • Add the facebook app secret to env.secure in .travis.yml
  • Remove the files in_data/facebook
  • Exclude any files in _data/facebookfrom git

Then every deploy would refresh the Facebook CDN URLs.

Pros:

  • no need to save even more images in the git repo

Cons:

  • deploy would take longer, currently takes ~50s (see build history), locally doing jekyll build with empty _data/facebook directory reported done in 74.092 seconds. today
  • working iteratively, pushing many commits would build up a big deploy backlog and the Facebook API might not like it?
  • ENV is tricky business on Windows might be able to continue to use jekyll configuration locally

Facebook "App Review Required"

Såg nu att jag 3:e maj fått följande meddelande från Facebook:

The Facebook App Review process and API permissions model have been updated. Learn More.

In order to maintain your current API access, your app will need to be submitted for review by August 1, 2018. If your app is not submitted for review, you will lose access to these permissions and features.

  • user_link
  • user_gender
  • user_age_range
  • user_friends

The Facebook Platform APIs have been updated with these changes. Please review the FAQ to ensure you request the correct permissions and features with your app review submission.

If access to the permissions and features is approved, the app may need to be associated to a verified business to complete App Review.

Fix the image gallery

Now that URLs to the photos in the Facebook albums can't be retrieved anymore, another solution is needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.