Twitter Share extra text - html

I'm building my own Twitter share link as explained here:
https://dev.twitter.com/docs/tweet-button#build-your-own
The URL that I'm sharing will look something like this sample URL:
https://twitter.com/intent/tweet?url=http://www.google.com&text=I%20just%20shared%20my%20link%20using%20#eckroth%20-%20Check%20it%20out:
My question: How can I add text after the URL with some other information? The URL param sticks itself at the very end of the share string:
"I just shared my link using #eckroth - Check it out: http://www.google.com"
I want it to be something like:
"I just shared my link using #eckroth - Check it out: http://www.google.com - Some other text here!"

Sorry, Joel, but you can't do that with the Web Intents API, which is what the sample URL you provided posts to. Check this out: https://dev.twitter.com/docs/intents.
If you scroll down to "Supported parameters", you'll see the description for the url parameter, which states that it will be shortened and "appended to the end of the tweet". So we have no control over where the URL goes if we give it to Twitter to take care of.
That said, you could simply include the URL in the text, yourself. Before Twitter made their own URL shortener, that's how we used to do it. Pass it through http://bit.ly or similar and then include the resulting URL wherever you want to in the text.
Note - the way your self-shortened links will be rendered on-screen in the timeline may not carry the same authority as a URL you pass to Twitter, though, so you may want to do both.
Good luck!

Related

MediaWiki API to fetch all links from the See Also section of an article

https://www.mediawiki.org/wiki/API:Query
From above link please suggest me an appropriate API to fetch/get all the links of See Also section of an article.
For Example:
I want a list of the above 5 links.
There is an API to get the external links associated with an article:
https://en.wikipedia.org/w/api.php?format=json&action=query&titles=Pune&prop=extlinks
Now, coming back to the original question about See Also links - If there is no proper API then how can we extract the same links if we have the wikitext contentmodel.
Example of wikitext:
https://en.wikipedia.org/w/api.php?format=json&action=query&titles=Pune&prop=revisions&rvprop=content
As far as I know, there's no way to do this in a single call, but you can use https://en.wikipedia.org/w/api.php?action=parse&page=Pune&format=json&prop=sections to give all of the sections in an article then iterate through the results to find the index of the section where 'line' == 'See also' e.g. in this case 42 and then use https://en.wikipedia.org/w/api.php?action=parse&page=Pune&format=json&section=42 to give you just that section.

Facebook Graph api Search post with Picture

So If I post a status update on Facebook with a photo (public), I want to use Graph Search api to find it.
Here is the link I've been using:
https://graph.facebook.com/search?q=%23tacomaevent&type=post
I am hoping to be able to use the hashtag such as #tacomaevent so I can search for public text and picture post.
Thanks for your help.
I know this is an old question and would like to point out that, as of now, the search you proposed returns a JSON string containing a list of Facebook Post objects, which may have a property named picture. This property will contain an URL of the picture if one is available.
It has many other properties and they're documented here.

URLENCODE Variable in Salesforce Vertical Response Email

This is a rather simple question, but I cannot find documentation about it from Salesforce.
I am setting up an HTML Newsletter from Salesforce Vertical Response, and I need to put a link in the body of the email that goes to another site which takes the user's email address as a query string. I am doing this so that when the user clicks the link from the HTML email, they will automatically be signed up for a different blog mailing list.
The link will look like this www.mywebsite.com/blog/subscribe?email=your_email#email.com.
I can easily accomplish this by using the {EMAIL_ADDRESS} variable, such that the link looks like this:
Subsribe
This workds, but when the user gets the email and clicks the link, the '#' symbol gets stripped from the URL. Now I'm trying to figure out how to get around this. I saw some documentation on the URLENCODE() function for SalesForce, but when I try to use it in the HTML email editor in SalesForce, like URLENCODE({EMAIL_ADDRESS})it doesn't execute it, and instead interprets it literally as text. Can anyone help me? is it even possible to use functions from within the SalesForce HTML email editor?
Thanks
I havent used VerticalResponse, but if it leans on salesforce communication templates then you can always create an email template as Visualforce page. Then you can apply Encode functions to merge fields.
I'm glad you were able to find a workaround. If you ever go back to dealing with the URL, it's a good idea to disable our click-tracking when working with merge fields. This can be accomplished by adding nr_ before the http. Example: Subsribe - If you ever try that and it doesn't work, or if you have any other questions, please let us know via one of our Support channels:
support#verticalresponse.com
866-683-7842 x1
We also have live chat available: http://help.verticalresponse.com/
Regards,
Keith Gluck
VerticalResponse Customer Support

Difference between twitter share buttons

I simply want to add couple share button onto my page. And I see that people recommend different ways of doing it:
I see some articles using home?status:
<a href=”http://twitter.com/home?status=Currently reading <?php the_permalink(); ?>” title=”Click to send this page to Twitter!” target=”_blank” rel=”nofollow”>Share on Twitter</a>
and some using share?url:
Tweet
What's the difference?
Your first example simply updates the status with the text you enter. The second example has a lot more functionality.
share?url supports class attributes for the anchor tag. In the anchor tag you can add things like data-related to suggest accounts the user will follow after they share the content or if you don't supply a url it will look for the current url the call is being generated from and share that. It has a lot more functionality vs the dumbed down home?status call.
find more here: https://dev.twitter.com/docs/tweet-button

Cloaking url but keeping sub-urls

I have a dot-tk (www.dot.tk) domain that redirects to a blog of mine.
But I have a problem. If a visitor of the blog who have entered through the tk-redirection, navigates to a specific post or even follows a link that leads elsewhere, then the URL-bar doesn't change to reflect the change. It always show the tk-address only. I want sub-urls to be visible so that the visitor can copy and send the url of that post to a friend or even bookmark the specific post.
This does works well if the reader has entered the blog from the normal url.
One "solution" to this would be to put this code in the blog:
<head>
<script type="text/javascript">if (top!=self) top.location.href=self.location.href;</script>
</head>
With this code the real url will always be seen, not the tk-url, even if the visitor have entered through the tk-url.
This works, but preferably I would like to show the tk-adress AND the sub-urls, if possible.
In other words...
Instead of http://myblog.blogspot.com it should be www.myblog.tk (this works)
And instead of http://myblog.blogspot.com/blogpost5 it should be www.myblog.tk/blogpost5 (This is what I need help with, if it's possible somehow)
I hope I've made myself clear and I hope there's a solution to it.
Thanks in advance!
I think you don't want to use this redirection scheme. Instead use Blogger's custom domain name functionality.