Customizing google plus url default comment - ruby-on-rails

Is it possible to add a comment by default when using google plus share link?
The url is the following
https://plusone.google.com/_/+1/confirm?hl=en&url=URL_TO_SHARE
I've trieid adding &message=MESSAGE but that didn't help. Also tried &comment and &text

Just to warn you, this is not an officially supported part of the Google+ platform. I strongly recommend that you use the +1 button to share content to Google+.
That being said, there is no paramater that you can set to specify the message. The closest you can get to this is to use schema.org, open graph or HTML meta elements to specify the description of your target URL just like the +Snippet for the +1 button.

Related

How to add a hyperlink to an event, in calendar programmatically in iOS without showing actual URL?

I have check this and created an app to simply add event. My requirement is to add a deeplink to an app with some data params, but I do not want to display that in the URL. I would rather prefer having a simple text, say "Open this link" added in place of URL to the calendar event in iOS swift. Is that doable? I tried adding HTML <a> tag to notes like below, but it doesn't work
eventObj.notes = "Some Notes : <a href ='www.google.com' target='_blank'>Open this link</a>"
I would prefer to go without URL shortening.
I run into the same issue and it seems like the short answer is No.
The iCal standard DESCRIPTION doesn't support HTML or rich text.
There is an experimental field X-ALT-DESC, which allows you to add HTML to calendar events. And in Outlook you can use it, but as for iOS 13.2 it is not natively supported by Apple.
EventKit API is also doesn't have a way to add the HTML or rich text.
So, the only way you have your links highlighted is by old-plain url detection.
Hence, unfortunately you will have to add your URLs as-is.

How is url without protocol differs from a simple one?

I often see people use urls like below for CDN resources.
<script src="//site.domain.com"></script>
I wonder how it's different for browser if it was specified like "https://site.domain.com"
It means "keep the same scheme" than the actual document.
See shorthand http:// as // for script and link tags? anyone see / use this before?
UPDATE : correct link.

Hyperlink functionality for label in ios native app

I have image which contains tags(showed with # symbols) when i click on a particular tag then i need to call a web service by passing the same tag on which i clicked and i need to push another view.
After clicked on the tag i need to perform search functionality which tag i have sent.It may have multiple tags for single image like that i have more than on image.
Great appreciation for answer.thank you.
Attached the screen shot below placed the tags with # symbol before.
There are a number of open source libraries that help with what you want to do. Check out this link to another StackOverflow post that suggests using TTAttributedLabel.

How to get the embed url for google docs presentation?

It looks like recently there has been a slight change on embedding a published google docs presentation.
The url for the iframe embed changed from:
https://docs.google.com/present/embed?id=[doc_id]
To:
https://docs.google.com/presentation/embed?id=[doc_id]
Looks like some old documents still require the old embed url, and the new documents require the new url. So given a doc_id is there a way (using the API) to get the embed url you should be using?
update:
After poking around, it looks like from the revision, the old doc has link tag with rel=http://schemas.google.com/docs/2007#publish, which contains https://docs.google.com/present/embed?id=[doc_id], but on the new doc that value is https://docs.google.com/feeds?xoauth_requestor_id=[user_email].
So the question is can I assume that if the link with rel=http://schemas.google.com/docs/2007#publish contains https://docs.google.com/feeds?xoauth_requestor_id=[user_email] then I need to use this url https://docs.google.com/presentation/embed?id=[doc_id]?
Or is it just that the API didn't include the correct value in the revision? (because I think this just happened quite recently).
The embed link has rel="http://schemas.google.com/docs/2007#embed" and URLs might look like https://docs.google.com/presentation/d/PRESENTATION_ID/preview. However, you shouldn't manually build those URLs but instead use the value of the link with rel="http://schemas.google.com/docs/2007#embed".
The xoauth_requestor_id parameter won't be included in the embed link as that is only required when using 2-legged OAuth and impersonating a different user. If that is the authorization mechanism of your choice, you have to add those parameters yourself when adding the auth token.

How do I write a link that works for a specific youtube channel video?

When I add a link which contains a # hash tag, Apple Mail 3.6 on the Mac OS X does not link it properly.
This: http://www.youtube.com/user/chromeperformance#p/u/1/fdf2Z0vpnT0
Becomes: http://www.youtube.com/user/chromeperformance#p/u/1/fdf2Z0vpnT0
Would really appreciate some help.
Regards
Craig
Apple Mail has a bug which doesn't allow you to use the hash # sign in a URL. If you go to Edit > Link > Add in Apple Mail and paste the url into it, it won't let you.
Unfortunately through testing and scouring the web, a solution does not exist, though many complain.
The best alternative is to use a URL shortening service such as http://bit.ly to produce a short url which can then be added to an email.

Resources