klubbdinmamma / klubbdinmamma.github.io Goto Github PK
View Code? Open in Web Editor NEW:balloon: klubbdinmamma.com
Home Page: https://klubbdinmamma.com
:balloon: klubbdinmamma.com
Home Page: https://klubbdinmamma.com
Idea to address #1:
assets/img/facebook_photos
Pros:
Cons:
The cron job is configured at https://travis-ci.org/klubbdinmamma/klubbdinmamma.github.io/settings
I think running weekly is enough
Appen (länk som bara jag kommer åt tror jag) är inställd på v2.7.
Enligt https://developers.facebook.com/docs/graph-api/changelog/ försvinner v2.7 October 5, 2018.
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.
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
August 29 fick jag detta meddelande från Facebook:
klubbdinmamma.com has reached 80% of the hourly rate limit.
Here's a breakdown of the methods causing your app to approach the rate limit:
By Call Count:
GET {page-name-id}/albums 88%Resources:
API error codes and recovery tactics
How rate limiting worksYou'll get another alert if your app hits the rate limit.
Idea to address #1:
app_secret
from ENV
(as a fallback, if possible? to not need ENV
locally (e.g. Windows))env.secure
in .travis.yml_data/facebook
_data/facebook
from gitThen every deploy would refresh the Facebook CDN URLs.
Pros:
Cons:
jekyll build
with empty _data/facebook
directory reported done in 74.092 seconds.
todayENV
is tricky business on WindowsSå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.
Inga bilder på https://klubbdinmamma.com/events/ längre
Uncaught Error: Error from Instagram: The access_token provided is invalid.
at e.parse (instafeed.min.js:2)
at recent:1
Now that URLs to the photos in the Facebook albums can't be retrieved anymore, another solution is needed.
klubbdinmamma.github.io/_plugins/facebook_photos.rb
Lines 55 to 57 in f621309
Would make more sense when running locally than TRAVIS_EVENT_TYPE=cron bundle exec rake
It would also have the benefit that we can turn it off, for Travis, if we want that for some reason
Saw that https://klubbdinmamma.com/photos/ looked funny:
It's because some photos return an response with status:403
, e.g. https://scontent.xx.fbcdn.net/v/t1.0-0/p75x225/12832551_1142883775763432_2443243193919736709_n.jpg?oh=81bb40b582ec174714f83e2a4bb48608&oe=5810D792
And the body in the response says:
URL signature expired
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.