Skip to content

X/Twitter feed not loading posts #14

@ndoubleuu

Description

@ndoubleuu

Question

Hi there, we've installed the plugin and configured it to connect up to the X account. We've connected/authenticated successfully and are seeing the source listed as "Provider Configured" and "Connected".

Unfortunately, despite following the documentation, our posts array comes back empty. Additionally, setting up a feed and using the "Load Posts"/preview functionality also doesn't show any posts.

Here's the code we're using:

{% set xPostsSource = craft.socialFeeds.getSourceByHandle('xTwitter') %}
{% set xPosts = xPostsSource.getPosts() %}
{% for post in xPosts %}
    ID: {{ post.id }}<br>
    Content: {{ post.getContent() }}
{% endfor %}

Just wanted to ask if there's anything we're missing. Any help would be much appreciated! Thanks!

Update:
Using the same API credentials in Postman, we were able to successfully retrieve the 10 most recent tweets from a specific account. We used the following endpoint URL: https://api.x.com/2/users/:id/tweets (documentation: https://developer.x.com/en/docs/x-api/tweets/timelines/api-reference/get-users-id-tweets)

Additional context

Craft CMS v4.8.0
Social Feeds v1.0.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions