arusahni / ngtweet

Easily embed Twitter widgets into your Angular application! No more having to kludge together a Twitter script loader, or manage embed state on route/visibility change.
http://arusahni.github.io/ngtweet/
MIT License
34 stars 22 forks source link

Twitter has stopped supporting data_widget_id for many of their widgets #20

Closed ShannonHeylmun closed 8 years ago

ShannonHeylmun commented 8 years ago

I'd like to begin thank you for this awesome project. I was very eager to use it in my own app, but I ran into trouble tracking down the data_widget_id for a user timeline. Just wanted to let you know that it looks like the twitter team are ending support for ID's altogether. See discussion here, in particular,

The new model means that there are no "widgets" as such any more - so there are no IDs.

Hope you are able to find a work-around or perhaps point users toward an alternate solution without too much grief.

arusahni commented 8 years ago

Thanks for letting me know about this change. It looks like I'll be able to work around this. Hopefully I'll have something in place by the end of the week.

arusahni commented 8 years ago

@ShannonHeylmun I have a PR open that should address this: #21

Could you give it a whirl and see if this meets your needs? To embed a user timeline, you'd do something like this:

<twitter-timeline twitter-timeline-type='profile'
                  twitter-timeline-screen-name="'IAmAru'"
                  twitter-timeline-options='{"height": 500}'>
</twitter-timeline>
arusahni commented 8 years ago

Version 0.6.0, with support for the new timeline embed capabilities, has been released. Thanks!

ShannonHeylmun commented 8 years ago

Looks excellent. Very much appreciated!