#7 Fetch tweets from twitter API for the application
Closed 5 years ago by amitosh. Opened 6 years ago by a2batic.

Update the current code according to new codebase and twitter API; and fetch tweets by '@fedora' in the application.


I would like to work on this issue :-) Can you please assign this issue to me? @a2batic

Metadata Update from @a2batic:
- Issue tagged with: UI

6 years ago

Metadata Update from @a2batic:
- Issue assigned to thelittlewonder

6 years ago

@a2batic

I just went through the code of twitter request again, and it seems that we're already using the latest API. Developer Docs of Twitter API

Am I missing something here?

@thelittlewonder, @amitosh is working on app build issues, so according to the changelog[1], the javascript code has changed to typescript, therefore the function wont be working as before. I wrote new API instead of new codebase, sorry for misunderstanding.

[1] https://pagure.io/Fedora-app/pull-request/6

Till the work on build is in progress, the first thing you can do is analyzing what all hashtags and tags interest fedora community. You can discuss here about your analysis before starting to code.

@a2batic , @thelittlewonder ,

I have (accidentally) fixed the issue. There was a different set of type assertions by Angular in previous versions. Adding proper typings, solved it.

However, we can definitely improve the code around there. And may be add more channels and hashtags as suggested here.

+1, the code can be modified according to new tags and hashtags.

@a2batic Sorry for getting on this late, I was caught up in a hackathon. Will get back to you ASAP.

+1, the code can be modified according to new tags and hashtags.

Sorry, am not clear about this.
- Do we need to add specific hashtags to the UI, which when clicked will fetch all those tweets? or Just show all the hashtags fedora twitter account uses?

@thelittlewonder so right now, if you observed current tweets in application, they are being taken using '@fedora_qa' account only.

So you need to identify all the important hashtags(#) and accounts(@) which interest most of the fedora community, then we can brainstorm upon how to put it into the code.

Metadata Update from @thelittlewonder:
- Assignee reset

6 years ago

Hi @a2batic
I have thought of implementing this type of UI with functionality on the Social Page:

This is Facebook Side (Twitter is in the highlighted state by mistake):
fedora_fb_social.png

This is Twitter side:
Fedora_twitter_page.png

The reason for two different sections is that it makes it easier to implement hashtag feature on twitter as there is no API for hashtag search on facebook.

Also, I will implement whatever usernames you will ask to implement on facebook and twitter side.

For Hashtags:
We can use a fixed set of hashtags like #FOSS, #Fedora, #OpenSource or also we can check which hashtags have been used in last few posts of fedora handle. I can implement whatever method you want me to implement.

Can you assign this issue to me?

@twishi, we can add design changes later, as we still have to decide upon the final theme and other things. You can add functions for the current UI, I will assign this to you.

Metadata Update from @a2batic:
- Issue assigned to twishi

6 years ago

Also, it will be better if you can first come up with a list of hashtags and '@s'.

@a2batic I unassigned myself this issue due to the fact that it had an [outreachy] tag. But Since the issue is dead for the last 10 days, I did some scraping and these are some interesting results I found.

FedoraTwitterAnalysis.png

This is the data obtained from Twitter API for the hashtags and mentions by the fedora twitter account. I have used font size and color to distinguish between the frequency.

@thelittlewonder, That looks a good amount of information to get started with this task. I think we can have @fedora, @fedoracommunity, #fedora into consideration. What your thought ?

Sounds Good. So in addition to the tweets from Fedora Account, we also show all the tweets that have #fedora or have mentioned @fedora/@fedoracommunity, right?

Metadata Update from @amitosh:
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata
Attachments 3
Attached 6 years ago View Comment
Attached 6 years ago View Comment