function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Debendra Ray 8Debendra Ray 8 

Twitter Widget Code is not being rendered on the VF Page

Following Twitter Widget Code is not being rendered on the VF Page - Appreciate a fix for this issue asap :

<apex:page standardcontroller="Competitor__c" > <script src="http://widgets.twimg.com/j/2/widget.js"></script> <script> new TWTR.Widget({ version: 2, type: 'search', search: '{!Competitor__c.Name}', interval: 6000, title: '', subject:'', width: 'auto', height: 200, theme: { shell: { background: '#ffffff', color: '#ffffff' }, tweets: { background: '#ffffff', color: '#000000', links: '#1797C0' } }, features: { scrollbar: false, loop: true, live: true, hashtags: true, timestamp: true, avatars: true, toptweets: true, behavior: 'default' } }).render().start(); </script> </apex:page>
KaranrajKaranraj
Were you generate the Widget code? Try to generate the widget code from this link https://twitter.com/settings/widgets and paste in your visualforce page. Pls check the below screenshot where I can able to embeded the twitter widget in my vf page

User-added image

 
Simon WhightSimon Whight
http://widgets.twimg.com/j/2/widget.js was retired by Twitter a couple of years ago. As of now, I don't have the technical nous on how to fix it. You'd have to go via their new API.