How to get media count of a user by username on Twitter? - twitter

https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-by-username-username
I found this document for getting user info by username, but I want to get media count as well. Can anyone help me how to get it?
Thanks.

This is not available in the Twitter API.

Related

How to retrieve the post URL for a Facebook or Twitter post using SLComposeViewController?

After sending a post to either Facebook or Twitter with SLComposeViewControllerResult, is it possible to get a URL of that post?
Thanks
I guess it is not possible till current implementation of SLComposeViewController.
Because SLComposeViewControllerResult only gives limited options.
Ref Apple Doc

Twitter reverse auth get full name

I'm following https://github.com/seancook/TWReverseAuthExample for implementing reverse SSO in Twitter to my app.
As a result I get oauth_token, oauth_token_secret, user_id and screen_name. Is there any way to get also full user name (name) of user?
Thanks in advance.
For some reason I can't find it in the ACAccount properties for fullName key. It used to be stored there, but right after reverse auth it is empty. What I'm missing?
The thing was that fullName key exists if user not only added the twitter account, but looked up for details. Otherwise this field is empty. Might help someone.

Read Public Timeline from Facebook

I am new on iOS Facebook sdk. I am using version version 3.1.1. I can reach my profile's information via sdk. But I am wondering How can I access and read from other user's public timeline? I search on web but I couldn't find anything. Thanks for answers
All roads lead to Rome.
You can find other users' IDs by many ways on quite any API objects (likes and comments from photos and posts of friends or pages).
Example of a request that gets many users, from a Facebook page post:
https://graph.facebook.com/20531316728_107148006126775?fields=likes.fields(id)
At Facebook, you have a USER_ID and an alias. You can get the alias by accessing their public profile.
For example- https://www.facebook.com/shireesh.asthana which gives you the alias shireesh.asthana
Now you can get the actual User_Id by going to:
https://graph.facebook.com/shireesh.asthana
which gives you my User_id as 631951716
Now you can just do a GET request on 631951716/feed which will help you get the posts of that user(which of course you can see as a non friend).
Hope that helps!

Can I post on page's wall with an iOS application?

How to post to a page's wall using FaceBook Graph API for iPhone?
Should I need to prompt for any permission for that?
Is it possible or not?
Thanks in advance.
You can using the Post method. It requires the publish_stream permission. The user needs to have "liked" the page in question.
To publish a wall post, POST the
message and optional attachment to the
feed/wall of the user, page or group,
i.e.,
http://graph.facebook.com/PROFILE_ID/feed.
Annoyingly, the one thing that Graph API will not allow, is to let the user "like" a page through it. The user must already have "liked" the page. (catch-22)
Graph API Page documentation

Get current user screenname from Twitter

Is there a way to get the screenname of the current logged in user?
The show requires id or user_id or screen_name, but I don't have any of those.
I could only think about a workaround, that would be to make a request to twitter.com and get the contents of the <span id="me_name">
have you tried account/verify_credentials
It's not possible without oAuth.
The only workaround is the one mentioned on the question.

Resources