Coder Social home page Coder Social logo

blissmedia / aligent_feeds Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aligent/magento-twitterwidget

0.0 2.0 0.0 84 KB

Magento module to pull a Twitter feed using API v1.1 (requires OAuth) and insert into a Widget for use on Homepage or elsewhere

PHP 89.71% Racket 10.29%

aligent_feeds's Introduction

Magento Twitter Feed

Gets a feed of a twitter users tweets from Twitter API v1.1

Requirements

  1. Twitter account to create Developer App (to generate oAuth keys)
  2. PHP oAuth PECL extension

Installation

  1. Install oAuth php extension
sudo pecl install oAuth
  1. If you get an error complaining about prec not being available install that using
apt-get install libpcre3-dev

Then run the oAuth install again 3. Add the extension to php.ini

extension=oauth.so
  1. Restart Apache
service apache2 restart
  1. Install Magento module
  2. Login to Twitter developer site and create a new app (doesn't have to be on the account the feed will be pulled from)
  3. Create access tokens
  4. In magento admin system config find Aligent Feeds under Advanced and enter the consumer key/secret and access token/secret, enter the screen name for the twitter account to get the feed for as well as the amount of tweets to request, save config
  5. Add Aligent Feeds block in layout xml
<block type="aligent_feeds/twitter" name="social" template="aligent/feeds/twitter.phtml" />
  1. Twitter feed!

Notes

  1. The same application can be used for multiple feeds
  2. The Twitter API is strange in that the get replies option is filtered after the amount is retrieved, so if you request 20 tweets, and to exclude replies, you may end up with only 10 tweets. So if you want 20 tweets excluding replies you'll need to request either heaps and then trim to 20 (still not guaranteed), or keep requesting until you get your 20 tweets.

aligent_feeds's People

Contributors

brentaligent avatar jharrisonio avatar

Watchers

James Cloos avatar Matt Boik 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.