Code Monkey home page Code Monkey logo

social-feed's Introduction

Social-feed

A jQuery plugin which shows a user feed from the most popular social networks.
Currently supports: Facebook, VK, Google+, (Twitter is currently not supported)


If you use this plugin, please write me a short message with a link to the project where you embed the plugin, and what would you like to have more in the plugin. It will help me to stay focused on the important issues and see the global picture!
It is not mandatory, but i will really appreciate it!

Attention: After Twitter has prohibided an anonymous fetching of tweets - this function is currently not supported. Wait an update with a fix.


Online demo is here


With previews:

Getting started

Connect css and js:
    <link href="css/jquery.socialfeed.css" rel="stylesheet" type="text/css">
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script src="js/jquery.socialfeed.utility.js"></script>
    <script src="js/jquery.socialfeed.js"></script>

Create a container for your feed:

    <div class="social-feed-container"></div>

Initialize the social-feed plugin:

    <script>
    $('.social-feed-container').socialfeed({
                fb_username:'barack.obama',
                fb_limit:2,
                fb_token:'YOUR_FACEBOOK_APP_ACCESS_TOKEN',
                vk_username:1,
                vk_limit:2,
                vk_source: 'all',
                tw_limit:2,
                tw_username:'jack',
                length:130,
                cookies:true,
                show_media:true
            });
    </script>

When you run the plugin, make sure that you have your webserver running, otherwise you can get the next problem:

        XMLHttpRequest cannot load file://......./Social-feed/template.html. 
        Origin null is not allowed by Access-Control-Allow-Origin. 

If you want to change the layout of the feed, you can do it in the template.html file.
If you don't need to show the feed from all supported social networks, put the credentials only for those you need.
The Facebook requires an access token in order to get the feed of the user (even if it is public). To use Facebook feed, please register an application, generate a token and put it in fb_token.
Attention! A current version of plugin does not fully support IE browser. Please follow the process of solving issues for IE.

social-feed's People

Contributors

chirikov avatar foozzi avatar inhumanitas avatar pavelk2 avatar

Stargazers

 avatar

Watchers

 avatar

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.