Show images in twitter widget - twitter

Is there anything I can add to the twitter widget (the one available on the twitter website) to make images mentioned in tweets appear below the tweet text?

The Twitter widget does not have that functionality. You will have to write your own or use a third party widget.

Related

Swift: How to post to Twitter from iOS app with certain hashtag?

I'm fairly new to posting to social media via Swift in an iOS app but need to be able to post an image to Twitter under a certain hashtag (i.e the user's image is always posted under this certain hashtag regardless).
So far, my app can take a picture and access the user's photo library, but I have run into some trouble implementing post to Twitter.
I have looked at the following questions: Post on twitter from ios app
How to make an ios app post to twitter
But most of the links referenced are either gone or outdated. I have also looked into Sharekit (http://getsharekit.com) as this would do the posting to Twitter automatically it seems, however Sharekit is deprecated.
Ideally, I would like the user to be able to take their photo (I have this) give it a caption, etc WITHIN THE APP then when they press a button it more or less "silently" posts to Twitter WITH the hashtag that I will have set in the app. I am unsure as to how to accomplish this.
What is the best way/approach to posting an image to Twitter via Swift? The hashtag bit seems to be the more difficult step - how can I "force" a hashtag on the user's post?
What you're probably looking for is the Social framework and SLComposeViewController.
Using the setInitialText(_:) method you can add text to the tweet, though this doesn't really force anything, as the user still has the possibility to edit the tweet before publishing, and it doesn't really work "silently" either.
Posting an image is done with the addImage(_:) method.

Display only my recent tweets not other tweets in twitter widget

I have a website in which i have embedded Twitter Widget to display recent tweets.
Currently twitter widget displays all tweets related with the hashtag and # of the user. Here i want to display the tweets by the user only not by any hashtags or #.
For example, if i want a widget of '#twitter', it shows widget like this...
I want to show tweets only of '#twitter' which '#twitter' have posted not the other users...
Could this be possible ??
There are several types of embedded timelines offered by Twitter, you are using the Search one. If you want to get a User Timeline, create a new widget using this URL: https://twitter.com/settings/widgets/new/user
This kind of timeline will only show tweets posted by the user you set.
If you don't want (or can't) create another widget, just change the search term of your widget to: from:#[user_handle]. Example: from:#TwitterDev

Twitter search within an iOS app

After learning how to use Twitter within an iPhone app (with TWTweetComposeViewController), I would like to go one step further.
When the "Tweet Search button" (in my app) is tapped, I would like a view showing up with the result of a given search (for example "water falls") within Twitter.
Is this possible? And if Yes, how?
Since it is possible to fire up Twitter (within an iOS app) and the search is also possible for someone using Twitter manually, I would think the answer to my first question is Yes.
But at this point I have no idea concerning the answer to the second question.
Thanks for any relevant piece of information.
TWTweet class has a property called completionHandler which returns if successful/fail.
i would use a uiWebview object that will display the main twitter site with a query that will search for example water falls.
See this
iPhone SDK: First Steps With JSON Data Using the Twitter API
http://mobile.tutsplus.com/tutorials/iphone/iphone-json-twitter-api/

Sharing to both Facebook and Twitter at same time

Is there a way to share to both Facebook and Twitter at the same time? It seems like bad form to display the facebook popup, have the user write their text, then after they submit open the Twitter popup.
edit: I am asking if this is possible using iOS 6 sharing framework, and if so how.
No, it is not possible to share to Facebook and Twitter at the same time. You have to first write text in the Facebook screen and then in the Twitter screen, or vice versa.
Maybe it is possible to write something in the Facebook screen, store it in a variable and use it with SLComposeViewControllers' setInitialText method.

iOS TWTweetComposeViewController - Posting in background

I'm trying to integrate twitter in iOS5 app.
Using Twitter framework in my app, can I post the message in the background?
I know that using TWTweetComposeViewController, it will show a view and then it will post.
Is this possible?
The answer is no. The whole point of having the View Controller is to allow the User to see and dictate what exactly will be posted without interference from the App apart from the initial text which the user also has the option to change. It stops apps abusing the Twitter accounts from posting spam etc.
The Apple Documentation clearly states:
Although you may perform Twitter requests on behalf of the user, you cannot append text, images, or URLs to tweets without the user’s knowledge. Hence, you can set the initial text and other content before presenting the tweet to the user but cannot change the tweet after the user views it.
You can't do this using TWTweetComposeViewController. You can do this using TWRequest provided the user authorizes your app to access their Twitter account(s).

Resources