Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X/Twitter feed not loading posts #14

Open
ndoubleuu opened this issue Nov 5, 2024 · 0 comments
Open

X/Twitter feed not loading posts #14

ndoubleuu opened this issue Nov 5, 2024 · 0 comments
Labels

Comments

@ndoubleuu
Copy link

ndoubleuu commented Nov 5, 2024

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

@ndoubleuu ndoubleuu changed the title Twitter feed not loading posts X/Twitter feed not loading posts Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant