by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jonathan Hornung
    @JohnnyTheTank
    I call this "credential manager"
    you can store more than one api key per platform, like this:
    apingApiKeys: {
        facebook : [
            { 'access_token': '<YOUR_ACCESS_TOKEN_1>'},
            { 'access_token': '<YOUR_ACCESS_TOKEN_2>'},
            { 'access_token': '<YOUR_ACCESS_TOKEN_3>'},
            { 'access_token': '<YOUR_ACCESS_TOKEN_4>'}
        ],
        // ...
    }
    Alessandro Berbenni
    @aberbenni
    Interesting and smart solution.
    I just hope they don't find out...
    Jonathan Hornung
    @JohnnyTheTank
    till now, I got no problem
    and I'm using some youtube token for the demos
    and some twitter token etc
    no problems till now
    do you need this done for a commercial usage?
    or just private
    Alessandro Berbenni
    @aberbenni
    Commercial.
    markbishop
    @markbishop_twitter
    JTT, are you there?
    Jonathan Hornung
    @JohnnyTheTank
    hi mark
    yes i'm here
    markbishop
    @markbishop_twitter
    Here is my ionic app.js (top)
    angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'jtt_aping', 'jtt_aping_flickr', 'jtt_aping_dailymotion', 'jtt_aping_rss', 'jtt_aping_facebook'])
    so I added the fb

    index.html I added

    <script src="js/aping-plugin-facebook.min.js"></script>

    Jonathan Hornung
    @JohnnyTheTank
    yes
    that's correct
    you can use markdown for syntax btw
    here and in readme.io
    markbishop
    @markbishop_twitter
    tab-dash.html after ion-content shows
    <aping template-url="social_template.html" items="3" model="social" order-by="timestamp" order-reverse="true" aping-youtube="[{'channelId':'UCuGcxogeiX5DbfzBMTl_aZQ'}]" aping-facebook="[{'page':'Greenville First'}]" aping-codebird="[{'user':'adidas', 'showAvatar':false}]" aping-rss="[{'path':'http://blog.hackerearth.com/feed'}]">
    </aping>
    Jonathan Hornung
    @JohnnyTheTank
    maybe the facebook page name is wrong
    markbishop
    @markbishop_twitter

    then aping-config.js
    "use strict";
    angular.module('jtt_aping', [])

    .config(['$provide', function ($provide) {
    $provide.value("apingDefaultSettings", {
    apingApiKeys: {
    facebook: [{'access_token': 'EAAJPcXaGBosBAI6DwnGRPtjZA........................... (the rest of my token key)'}],
    // ...
    }
    });
    }]);

    Jonathan Hornung
    @JohnnyTheTank
    try t3nMagazin for facebook
    markbishop
    @markbishop_twitter
    so do I not need the aping-config.js?
    Jonathan Hornung
    @JohnnyTheTank
    "use strict";
    angular.module('jtt_aping', [])
        .config(['$provide', function ($provide) {
            $provide.value("apingDefaultSettings", {
                apingApiKeys: {
                    facebook: [{'access_token': 'EAAJPcXaGBosBAI6DwnGRPtjZA........................... (the rest of my token key)'}],
                // ...
                }
            });
        }]);
    next time, please paste with 3 backticks
    This message was deleted
    markbishop
    @markbishop_twitter
    k
    Jonathan Hornung
    @JohnnyTheTank
    better create a new file called aping-config.js
    at first, it looks good
    markbishop
    @markbishop_twitter
    k, one sec.. I'm creating blank ionic and starting over
    Jonathan Hornung
    @JohnnyTheTank
    first of all, try to use another facebook page
    markbishop
    @markbishop_twitter
    okay
    Jonathan Hornung
    @JohnnyTheTank
    try this: t3nMagazin
    that's one of my samples, where I know
    markbishop
    @markbishop_twitter
    give me one sec.. btw, thanks for creating this ... I've been searching everywhere how to display my social feeds in my app
    Jonathan Hornung
    @JohnnyTheTank
    you are welcome
    would love to get a star on github
    :)
    markbishop
    @markbishop_twitter
    will do
    Jonathan Hornung
    @JohnnyTheTank
    ty
    markbishop
    @markbishop_twitter
    okay, I'm seeing the demo (flickr, motion, rss) but facebook is missing.. do I need the config file since I'm using another facebook page name?
    Jonathan Hornung
    @JohnnyTheTank
    facebook needs api keys
    thats the problem
    markbishop
    @markbishop_twitter
    so put in my API token and make the config js?
    Jonathan Hornung
    @JohnnyTheTank
    the config file looks valid
    you have to include the config.js