I've just looked online but couldn't find the answer:
Is it possible to include a link in an HTML e-mail, so that when a user clicks it, it takes them to post a pre-defined text on their Twitter account, e.g. "#username #hashtagterm This text comes up automatically for me to tweet"?
I guess that if a user isn't logged in, they'll have to go past the login screen and then arrive at the page where they can send the tweet, right?
As I said, it needs to work reliably in an email, so I guess it shouldn't have any javascript associated with it.
Thanks for any help.
Try this, replacing the text with what you want:
https://twitter.com/intent/tweet?text=this+is+a+test
See intents
Related
I want to track my sent emails in Rails. I searched and discovered that I can do somethings like this. But I also need to know if a specific link in the email was clicked. Is this possible?
Another idea I had is to know where the user was before the page. For example, the link takes you to page X. Can i know where the user was just before the page X - so I would be able to know if was an email page?
Yes, it is possible to know if the user clicked the link via the sent email. A simple solution to this can be using an extra parameter in the links sent via the email. Something like ?email=true. This way, you can retrieve this email parameter in your controller and know the user clicked the link in the email.
Your request.referer will be nil if redirected from an email. So this technique of checking the user's previous page will not work
If a user has >1 Twitter accounts set up of their device, I would like to be able to control which account username is the default value of the From field in TWTweetComposeViewController.
At the moment it seems to default to the first Twitter account on the system and I can see no way of changing this.
As far as I know, i't not possible to manipulate TWTweetComposeViewController more than adding an image, a link and an initial text. Apple is very clear on this:
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
I know that preselecting the user account it's not against it, but on the class reference I don't see a way to change the account. It's completly up to the user.
http://developer.apple.com/library/ios/#DOCUMENTATION/Twitter/Reference/TWTweetSheetViewControllerClassRef/Reference/Reference.html
I have a problem similar. I'm trying to fetch which account was used after the tweet. TWTweetComposeViewController seems to remember which was the last account used to tweet. If anyone knows...
I am looking for a way to create a Twitter button which would automatically post a reply to an existing tweet, without the API.
Clicking the button would open a pop up window with a Twitter status form. Tweeting from the window would create a reply, which would have the tweet_id replied to in its metadata.
Any help appreciated.
Use Twitter's Web Intents for this. You can setup the tweet intent to take a in_reply_to parameter indicating the tweet that is being replied to. It's pretty much as simple as creating an HREF pointing to https://twitter.com/intent/tweet?in_reply_to=12345
If you incude Twitter's optional Javascript, the HREF will become a pop-up automatically and you can further track the events.
i have a webpage. on it, i have added a twitter tweet button, available here
http://twitter.com/about/resources/tweetbutton
using this, the user is able to connect via twitter, and also post tweets. another thing possible is that user clicks on the button, maybe even logs in with twitter, but closes the popup without tweeting.
now, i need to get some kind of response to know when the user has actually tweeted. if the user has tweeted, i have to display a message on my native webpage saying 'thank you for tweeting' and IF POSSIBLE, the tweet text that he tweeted.
any ideas?
I have a signup form, and I wanted to make it so that they have the option of recommending this signup to all their friends in facebook.
Is there a rails API/gem for doing this?
Is there an appropriate name for this?
Thanks!
Looking at the Extended permissions documentation, you don't get access to the email addresses of a Facebook user's friends (search for email and note the second column reads not available). If that's what you're trying to achieve, it's almost certainly not possible, without the user contacting each friend and asking them to visit your app (which I would imagine would have quite a low take-up, if only through inertia).
I guess you have two options:
popup a javascript before submitting the form to prompt the user wether he wants to share it with friends. You will use the js api http://github.com/facebook/connect-js (see the dialog section). This solution would avoid doing server side connection to the facebook api
Have a look a the Facebooker gem to do a stream_publish