Embedded profile not loading on Website


#1

Hi,

Using the embed widget I get only the link to the twitter profile, but not the tweets on our website.

Example here: https://www.webpackaging.com/en/portals/albea/

The code generates the following class=“twitter-timeline twitter-timeline-error” but how can I debug and see what error is?

Thanks


#2

I used publish.twitter.com to generate the embed code for your account’s timeline.

Using the Chrome web inspector, I then simplified your code to include that:

<div class="container">
<a class="twitter-timeline" href="https://twitter.com/AlbeaOfficial">Tweets by AlbeaOfficial</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>

Finally, I called twttr.widgets.load() in my Javascript console, and the widget displayed as expected.

You’ve changed the anchor reference to this:
http://www.webpackaging.com/actions/weblink/?dest=twitter.com/AlbeaOfficial&companyId=169

That is not a valid link that the widgets.js code can parse to resolve to a Twitter timeline. You’ll need to change this to be a direct link to your Twitter profile. Making that one change should fix the issue.


#3

Thanks, got it.

A javascript rewrites external links. That should be easily fixable.


#4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.