Coder Social home page Coder Social logo

oliverportmo / jquery-facebook-wall Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thomasclausen/jquery-facebook-wall

0.0 1.0 0.0 1.09 MB

jQuery plugin that lets you show the latest updates from your facebook profile og page.

Home Page: http://beta.thomasclausen.dk/facebook-wall/

jquery-facebook-wall's Introduction

Facebook Wall

jQuery plugin that lets you show the latest updates from your facebook profile og page.

Examples

The plugin can be seen live here: http://beta.thomasclausen.dk/facebook-wall/

Usage

Insert the following code to activate the pluign:

(function($) {
    $(document).ready(function(){
        $('#facebook_wall').facebook_wall({
            id: 'your_id',
            access_token: 'your_access_token',
            limit: 10
        });
    });
})(jQuery);

options:

id: '' - insert your profile og fanpage id
access_token: '' - insert your acces token
limit: 10 - any amount from 1-15
timeout: 400 - any amount (in miliseconds)
speed: 400 - any amount (in miliseconds)
effect: 'slide' - choices: 'slide', 'fade' or 'none'
locale: 'da_DK' - your contry code
avatar_size: 'square' - choices: 'square', 'small', 'normal' or 'large'
message_length: 200, // Any amount you like. Above 0 shortens the message length
show_guest_entries: true - choices: 'true' or 'false'
text_labels: your translations
on_complete: execute function when complete

Get your fanpage id

If your fanpage URL looks like ex. http://www.facebook.com/redbull, you just replace 'www' with 'graph' and you will get the id amongst other informations.

If your fanpage URL looks like ex. http://www.facebook.com/pages/redbull/14226545351, the number at the end of the URL is the id.

Get your profile id

If your profile URL looks like ex. http://www.facebook.com/thomasclausen.dk, you just replace 'www' with 'graph' and you will get the id amongst other informations.

If your profile URL looks like ex. http://www.facebook.com/profile.php?id=565874665, the number at the end of the URL is the id.

Get your acces token

Read the documentation from facebook: http://developers.facebook.com/docs/authentication/ or this page: http://neosmart-stream.com/facebook-2/how-to-create-a-facebook-access-token

Create a access_token that doesn't expires after 1 hour: https://developers.facebook.com/docs/opengraph/howtos/publishing-with-app-token/

Feedback

I'm self-taught by scattering code across the web, so if you see some bad practices PLEASE contact me, so I can learn from the mistakes I'm making!

Also feel free to contact me if you have som great ideas for improvements.

License

Credits would be nice, but feel free to use as often as you like.

jquery-facebook-wall's People

Contributors

thomasclausen 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.