From 57cf1d5f06cac395f8466fa78f7dff8a4d7422fa Mon Sep 17 00:00:00 2001 From: Philippe Barbosa Date: Thu, 24 Mar 2016 12:20:28 +0100 Subject: [PATCH] Twitter auth --- app/festival/static/js/index.js | 56 +++++++++++++++------------------ 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/app/festival/static/js/index.js b/app/festival/static/js/index.js index c4c9a8f0..56e951f3 100644 --- a/app/festival/static/js/index.js +++ b/app/festival/static/js/index.js @@ -88,37 +88,6 @@ $(function() { onBeforePrevSlide: function (el) {} }); - /** - * Instafeed - * @author Philippe Barbosa - */ - - // var t = new Instafeed({ - // get: "tagged", - // tagName: "manifeste15" - // userId: 2124483621, - // // accessToken: "2985811.467ede5.2d850141659d4a5fab04f28187e580cd", - // resolution: "standard_resolution", - // sortBy: "most-recent", - // limit: 8, - // template: '
{{caption}}
', - // error: function() { - // $(".instagram").remove() - // } - // }); - - // $("#instafeed").length && t.run(); - - // $("#instafeed").length && t.run(); - - var feed = new Instafeed({ - get: 'tagged', - tagName: 'awesome', - clientId: 2124483621, - accessToken: 'Disable implicit OAuth' - }); - feed.run(); - /** * Close message */ @@ -132,4 +101,29 @@ $(function() { notification.remove(); }, 4000); }); + + /** + * Instafeed + * @author Philippe Barbosa + */ + + // Ircam user ID : 1343260619 + // Client ID eeed5acba6ce490798253ce5c09a1852 + // Client secret ef3f37ce39c54db1b5145de40fb56c68 + + var t = new Instafeed({ + get: "user", + userId: 1343260619, + accessToken: "2985811.467ede5.2d850141659d4a5fab04f28187e580cd", + resolution: "standard_resolution", + sortBy: "most-recent", + limit: 8, + template: '
{{caption}}
', + error: function() { + $(".instagram").remove() + } + }); + + $("#instafeed").length && t.run(); + }); \ No newline at end of file -- 2.39.5