I have valid API credentials and set up an app for pulling tweets into my plateform but still do not see any tweet on the plateforme. Please advise.

What code / library are you using and what endpoint are you calling? What is your platform?

I am using this platform: [mooc-um6pdotushahididotio], a crowdsourcing platform which allows users to make announcements using Twitter (with a specific hashtag). It does not require coding, just copy and paste the credentials on the relevant fields, which I dit, but nothing appears.

Thanks, since ushahidi uses v1.1 Twitter API, if you do not have Elevated Access, only Essential, you will not be able to make v1.1 calls.

If you do have Elevated access, the issue may be with the access token (your app Settings in User authentication and login option must have Read & write permissions, and you must reset your access token after changing the permissions.)

Otherwise, if you do have Elevated access (your project in https://developer.twitter.com/en/portal/projects-and-apps should show v1.1 Access on it) removing your app and adding it back into the project as a “Production App” sometimes works.

Hope that helps!

I do have Elevated Access. Thanks for the recommendations. Will try them all.

1 Like

Oh, if you made this via Ushahidi https://twitter.com/mooc_cus/status/1620886167041474560 it should be working. In that case if you’re getting some errors or not seeing data, something else could be wrong - that depends on what exact endpoint is called, and if you can see any errors in logs somewhere

I wrote the above Tweet using my Twitter account and it was supposed to be pulled into my Ushahidi platform. The goal is to pull tweets from Twitter to Ushahidi. But It does not appear in the platform as you can in the screenshot (Tweet count is still 0).
image_2023-02-01_234604999. There is no error log on the platform.

Perhaps the problem lies within the authentication settings (Type of App or App Info).

No, if you can post tweets it means the authentication is working, and it could be something else. How does Ushahidi ingest tweets? If it uses the v1.1 Filter stream, this is not possible anymore because it is deprecated Announcing the deprecation of v1.1 statuses/filter endpoint

There should be logs somewhere - maybe depends on where it is deployed,for that you may want to ask somewhere in the ushahidi forums or github issues. But maybe you’re out of luck if this is still current: Log API errors from twitter · Issue #1634 · ushahidi/platform · GitHub because that might make your debugging harder.

1 Like

Thank you for your responsiveness. I am going to check the Ushahidi forums as you suggested.

1 Like

I think the best resolution to this is for Ushahidi to move to v2 of the API but i think that’s not going to be quick.

I actually found where it’s making calls, and it’s the old v1.1 Search API which should work - Ushahidi-Twitter/socialmedia_twitter.php at master · ditorelo/Ushahidi-Twitter · GitHub

What exact search query are you using? I think this should be set in Ushahidi configs someplace

1 Like

The configs allow you to use search terms separated with commas. I only use one search term for simplicity (#mooc), which shoul pull lots of tweets
image_2023-02-02_104722055
.