Hi All,
So many people wrote about Twitter webpart or widget or script that can work with sharepoint 2010. I want to share my experience. After the new API came in, I was checking the development part of Twitter to make the things work more easily for embedding Twitter feeds into your sharepoint page.
Goto : https://twitter.com/settings/widgets/new
Fill the User Name and select the height, theme and link color
Click on create Widget
It will generate code for the widget
It will be almost similar to
<a class="twitter-timeline" href="https://twitter.com/*****" data-widget-id="****************">Tweets by @******</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
Add this code to notepad
save the notepad with ".html" extension.
Upload this html page to sharepoint library
Now select the page where you want to embed this webpart and add CEWP and call this html pageand save it.
It will show the feeds and reply links on the webpart and does all kind of stuff that you can do on Twitter.
So many people wrote about Twitter webpart or widget or script that can work with sharepoint 2010. I want to share my experience. After the new API came in, I was checking the development part of Twitter to make the things work more easily for embedding Twitter feeds into your sharepoint page.
Goto : https://twitter.com/settings/widgets/new
Fill the User Name and select the height, theme and link color
Click on create Widget
It will generate code for the widget
It will be almost similar to
<a class="twitter-timeline" href="https://twitter.com/*****" data-widget-id="****************">Tweets by @******</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
Add this code to notepad
save the notepad with ".html" extension.
Upload this html page to sharepoint library
Now select the page where you want to embed this webpart and add CEWP and call this html pageand save it.
It will show the feeds and reply links on the webpart and does all kind of stuff that you can do on Twitter.
Hey very nice blog!!
ReplyDeleteHi there,I enjoy reading through your article post, I wanted to write a little comment to support you and wish you a good continuationAll the best for all your blogging efforts.
Appreciate the recommendation! Let me try it out.
Keep working ,great job!
Sharepoint training
I followed the instruction step-by-step. However, instead of the twitter feed I always see a link to Tweets by @user. What am I doing wrong?
ReplyDeleteYour help is very much appreciated.