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
Chris HustedChris Husted 

Incorporate Twitter Feed into Contacts Layout Using Custom Field

We're looking to incorporate a twitter feed into the Contacts layout that uses a custom field in the Contacts layout (i.e. @contactTwitter Handle) and populates any tweets that individual may have created.

I've created a widget in Twitter and then copied the underlying html into a custom VF pag that brings in my own twitter handle and a colleagues. The question is how do you customize the code to do a lookup on your custom contact field to locate that contact's twitter handle?

Here is a copy of my current code:

<apex:page > <a class="twitter-timeline" href="https://twitter.com/search?q=from%3Atwitterhandle1+OR+from%3Atwitterhandle2" data-widget-id="520320013941481472">Tweets about "from:Twitter_user_1 OR from:Twitter_user_2"</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> </apex:page>

Is anyone familar with how we would go about configuring this type of integration?

Thank you for any suggestions.