Giter VIP home page Giter VIP logo

Comments (14)

pavelk2 avatar pavelk2 commented on August 18, 2024

Yes i do plan. I don't know yet the structure of the new API, but i guess that i will take care about it on the next 2 weeks.

from social-feed.

joemaffia avatar joemaffia commented on August 18, 2024

no much of change... if not that any endpoint require authentication now :(

from social-feed.

marvellimited avatar marvellimited commented on August 18, 2024

Hello, have you manage to migrate to the new Twitter API 1.1??
Thanks

from social-feed.

pavelk2 avatar pavelk2 commented on August 18, 2024

Hello, now you can not get data from Twitter, using only javascript - you have to get data on the server side and then extract it via javascript. I have it implemented, but i will put it on github - only in one month or about that. Go to gitbox.ru/social-feed-1.1 - in one week - i will publish a new version there.

from social-feed.

marvellimited avatar marvellimited commented on August 18, 2024

Oh okay, i hear that...
The link you gave me is invalid, but i will check back on here in a week.

Thanks very much
keep up the good work!!

from social-feed.

marvellimited avatar marvellimited commented on August 18, 2024

Hello, How is it going?
have you managed to get the new API working??

Thanks

from social-feed.

notslang avatar notslang commented on August 18, 2024

I made a plugin for getting twitter posts on the client-side with just JS that you could use for this: https://github.com/slang800/twitterFetcher

from social-feed.

pavelk2 avatar pavelk2 commented on August 18, 2024

Great, appreciate! I will give it a look and will prepare integration as soon as i have some free time slot.

from social-feed.

sigurdsn avatar sigurdsn commented on August 18, 2024

I'm also missing twitter in my feed, would love to have this feature re-enabled.

from social-feed.

pavelk2 avatar pavelk2 commented on August 18, 2024

i will try to re-implement it soon

from social-feed.

notslang avatar notslang commented on August 18, 2024

@pavelk2: cool! HMU if you need any help using twitterFetcher

from social-feed.

sigurdsn avatar sigurdsn commented on August 18, 2024

Hey. I've found tweecool which has an API (probably with its own v1.1 authentication) to provide a JSON feed of a twitter users feed. Again this does not support filter for tags, nor handy information like the ID of each post - BUT it gives a authentication-free JSON feed for Twitter.
So I've re-implemented twitter to socialfeed in my own way, using some code I've found from an earlier commit and the URL from tweecool (ex. http://api.tweecool.com/?screenname=google&count=5). To replicate, make sure you re-add twitter to the 'options'-list of social network, then add this block as sibling to the other social network sections of the code:

twitter : function(account) {
    var request_url, limit = '&count=' + options.twitter.limit;

    switch (account[0]){
        case '@':
        var username = account.substr(1);
        request_url = 'http://api.tweecool.com/?screenname=' + username + limit;
        get_request(request_url,getPosts);
        break;
        case '#':
        break;
        default:
        request_url = 'http://api.tweecool.com/?screenname=' + username + limit;
        get_request(request_url,getPosts);
    }

    function getPosts(json) {
        var urlpattern = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
        var i = 0;

        $.each(json.tweets, function() {
            var element = this, post = {};
            i ++;

            post.id = json.user.id + '-' + i; // Feed doesn't provide post ID
            post.dt_create = moment(element.created_at);
            post.author_link = 'http://twitter.com/'+username;
            post.author_picture = json.user.profile_image_url;
            post.post_url = post.author_link; // + '/status/' + element.id_str; Feed doesn't provide post ID
            post.author_name = username;
            post.message = element.text.replace(urlpattern, '<a href="$1" target="_blank">$1</a>');
            post.description = '';
            post.social_network = 'twitter';
            post.link = 'http://twitter.com/' + post.author_name; // + '/status/' + element.id_str; Feed doesn't provide post ID

            getTemplate(post,json.tweets[json.tweets.length-1] == element);
        });

    }

},

Also remember to add twitter settings to your "index"-file or wherever you initiate the script. At least this is one way of having Twitter back in the social-feed script... Enjoy!

from social-feed.

pavelk2 avatar pavelk2 commented on August 18, 2024

@sigurdsn, thank you very much for your solution
As the tweecool is quite limited (no images, no search by hash-tags), I kept searching for alternatives and finally found https://github.com/jublonet/codebird-js. Thanks to this library, now we have twitter supported back at SocialFeed.

Please check the latest update
885a7db

from social-feed.

sigurdsn avatar sigurdsn commented on August 18, 2024

Hey! That looks awesome - congrats on re-implementing it to SocialFeed.

from social-feed.

Related Issues (20)

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.