RDN-1143
1

Twitter Feeds on RDNation

Scott on 8/23/2015 6:10 PM

Scott on 9/29/2015 2:19 AM

%
(hrs)
Logged

0 (hrs)


 Description

We need to display the Twitter feed of the league on their league pages. For example, view this league: https://rdnation.com/roller-derby-league/Aire-Force-One/524aa0d3e91b460e8c1ea0d40f285446

As you can see they have a twitter account for their league.  We will create a new tab that shows their feed on the page.

  1. Use the Factory called TwitterFactory in RDN.Library.  Rename the class to TwitterManager instead of Factory.
  2. Use TweetSharp already installed.
  3. Add another method to view the latest 10 tweets from posted by a twitter username.
  4. Add a new List to the APICache class.  You will need to store these tweets in the APICache list.  
    1. We do this, so we don't call Twitter after each page load of the league.  So we can cache the list of tweets we received from twitter and not have to call them again for a while.
    2. You will need to create a new class that stores both the list of the last 10 tweets, but also the name of the username handle.
  5. Add a new method to RDN.Api.  Submit a username to this method and return back the class object in json.
  6. If a handle is listed in the league page, a new tab should be shown on https://rdnation.com/roller-derby-league/Aire-Force-One/524aa0d3e91b460e8c1ea0d40f285446
    1. The tab should be called Tweets.
    2. On opening of the tab, the new method in RDN.Api should be called via javascript.
    3. You will then list out the lastest 10 tweets of twitter from that username.
  7. The tab shall show the list that looks like this: http://barbarasclub.com/bcmedia/inbox/2012/04/TwitterSample2.jpg
    1. It shall be centered within the tab it self. 

 

Need to display twitter feeds for RDNAtion under leagues.  Maybe even members in the future.

Skip Navigation Links
 

Scott Tuesday, September 29, 2015 2:19 AM #

replacing this piece with 1175.  Closing.

 

Dharmesh Saturday, September 26, 2015 6:52 PM #

I have used both the packags. But It is not working well. I am getting errors and tried many to fix it.  

I have added methods in ApiCache and TwitterManager Classes. Let me know if you know any way or you have any suggestions.

I have checkedIn my code. Please review it and let me know.

Thanks

 

 

Scott Monday, September 21, 2015 6:43 PM #

You know how to install nuget packages right?  Go ahead and try again.  Please install it to the same project as the other twitter library

 

Dharmesh Monday, September 21, 2015 5:53 PM #

Not able to install package https://www.nuget.org/packages/linqtotwitter. I got error "Unable to find package 'linqtotwitter'" while installing this package.

 

Scott Sunday, September 20, 2015 8:18 PM #

Go ahead and try this library: https://www.nuget.org/packages/linqtotwitter

 

Dharmesh Sunday, September 20, 2015 11:28 AM #

I almost implemented this functionality. But I am getting a error "Stackoverflow Exception" while retriving the tweets of user using ListTweetsOnUserTimeline method of tweetsharp.

I tried to solve this issue many times. I found some of soutions as listed links below but it's not enough to solve this issue.

1) https://github.com/danielcrenna/tweetsharp/issues/108
2) http://stackoverflow.com/questions/15219009/stackoverflow-exception-during-loading-list-of-users-profiles-using-tweetsharp
3) https://twittercommunity.com/t/tweet-messages-arent-sending/10086

I think may be it is permission issue. But I am not sure.  Can you please check the permission of twitter application which you we are using?

 

Scott Thursday, September 17, 2015 7:26 PM #

No, you won't be able to.

You will need to do it within your own Local League.

Go to League > Manage > edit > Social.

Add a twitter handle you found at twitter.com.  Save.

Get the ID in the URL: something like: a64c025ed03b48d3aff9dd57340b53ba

Then go to : localhost:16096/roller-derby-league/Aire-Force-One/(ID OF THE LEAGUE YOU JUST COPIED FROM URL)

That should then pull up your current league and allow you to test.

 

Dharmesh Thursday, September 17, 2015 6:48 PM #

For the 6 poing in description, I tried to open a given link https://rdnation.com/roller-derby-league/Aire-Force-One/524aa0d3e91b460e8c1ea0d40f285446.

I tried above url in my local iis and replace https://rdnation.com with http://localhost:16096. It is redrect me to http://localhost:16096.

I am not able to open localhost:16096/roller-derby-league/Aire-Force-One/524aa0d3e91b460e8c1ea0d40f285446.

Can you please tell me how can I see above link in my local iis express?

I also tried with go through http://localhost:16096/roller-derby-leagues and open one of league from all leagues. It is redirected to http://localhost:16096.


Powered by BugNET 1.6.339.0