iOS10 Messages Link Preview Image - ios

Any iOS10 beta testers out there know if Messages uses a syntax similar to Facebook Open Graph to set things like meta descriptions and images?
I'm building a site and would like to have it ready for when iOS10 is launched.
Here's the type of stuff I'm talking about:
<!-- Facebook Meta -->
<meta property="og:title" content="Site | Title of Page" />
<meta property="og:image" content="http://www.domain.com/im-content/social-post-images/facebook image.png" />
<meta property="og:url" content="http://www.domain.com" />
<meta property="og:site-name" content="Site | Title of Page"/>
<meta property="og:type" content="website" />
<meta property="og:description" content="Here is a description of my site that will show up in the Facebook card." />
And here's the image/info I'm trying to control:

It's at least using Open Graph and Twitter Card.
Demos
Open Graph
Markup:
<meta property="og:image" content="https://www.j-26.com/assets/facebook.jpg"/>
Preview:
Twitter Card
Markup:
<meta name="twitter:image" content="https://www.j-26.com/assets/twitter.jpg"/>
Notable findings
I tested this page using Twitter Card and Open graph and iOS seemed to prefer Open Graph. On the test page, the Twitter Card markup is placed before the Open Graph markup and the image used for Twitter Card is smaller than the one used in Open Graph. Despite the smaller size and earlier placement, iOS chose to display the image from Open Graph.

Related

Shares with og:video links instead of plays in Facebook app (ios)

I've got a web page i want to share on Facebook.
The page has a set of Open Graph meta datas, including the og:video setup:
<meta property="og:url" content="https://example.com/mypage />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="My Site"/>
<meta property="og:title" content="My Title" />
<meta property="og:description" content="My Description" />
<meta property="og:image" content="https://example.com/mymovie.jpg" />
<meta property="og:video" content="https://example.com/mymovie.mp4"/>
<meta property="og:video:secure_url" content="https://example.com/mymovie.mp4" />
<meta property="og:video:type" content="video/mp4" data-content-type="dynamic">
When shared, and browsed in a web browser on desktop, the video gets embedded - just as expected. However, when browsed inside the IOS Facebook app (iPhone 7, latest version), a click on the play button results in a navigation to the og:url (or maybe rather the shared url, which is the same).
How come?

Chrome iOS numbering link

If link has number (like 20000 ) in chrome ipad opens pop-up menu and try to call on this number. I added <meta name="format-detection" content="telephone=no"> but it didn't work, menu still shows and I can't go to page
Add this meta tag to your header. If you want other links to be phone numbers, use the "tel:" prefix.
<meta name="format-detection" content="telephone=no">

FaceBook App Invite with custome URL scheme iOS

I am trying to realize App Invite feature for iOS app. All works good except custome URL Scheme with parameter (like referral).
iOS app has two URL Schemas:
fb123456789712345://
myappurlscheme://
Meta tags in web server:
<meta property="al:ios:url" content="myappurlscheme://fb_app_invite?referral=referralname" />
<meta property="al:ios:app_store_id" content="123456789" />
<meta property="al:ios:app_name" content="MyApp" />
<meta property="al:web:should_fallback" content="false" />
<meta property="fb:app_id" content="123456789712345"/>
When FB user clicks on the App Invite from their profile i'am expecting than iOS app will be open with URL(myappurlscheme://fb_app_invite?referral=referralname),
but in practice i get URL(fb123456789712345://authorize#access_token=ZXZXZXZXZXZXZXZXZXZXZX&expires_in=86400&target_url=%2Fappcenter%2$454545454545454%3Frequest_ids%3D3333333333333%26ref%3Dapp_invite_inbox%26content%3Dinvite%222222222222222222)
I dont know how to figure out to use custome URL Schema for parse referralname. Please, help me. Where i had mistaken?

Facebook App Invites iOS v4 SDK error

I've double checked everything, from my understanding this is all I need to do:
self.inviteContent = [[FBSDKAppInviteContent alloc] initWithAppLinkURL:[NSURL URLWithString:#"http://mywebsite.com"]];
[FBSDKAppInviteDialog showWithContent:self.inviteContent delegate:self];
On mywebsite.com I have this in the heading (example values shown here):
<html>
<head>
<title>My Website</title>
<meta property="al:ios:url" content="appurl://action">
<meta property="al:ios:app_store_id" content="1234567">
<meta property="al:ios:app_name" content="My App">
</head>
<body>
...
</body>
</html>
So the dialog switches over the to the latest Facebook iOS app. I write a message and pick the person I want to send the invite to, hit send and I get this error:
Missing App Link URL
The app link used with this invite does not contain an Android or iOS URL. Developers are required to enter a URL for at least one platform.
What am I doing wrong?
My app handles the custom URL fine because if I enter appurl://action in Mobile Safari it opens my app up.
You need to create an AppLink URL from here/
Choose your application from the list
Fill up the form with equivalent information
Click on Next !
You're done.
Now, you can use that link with your code for invite.
self.inviteContent = [[FBSDKAppInviteContent alloc] initWithAppLinkURL:[NSURL URLWithString:APP_LINK_HERE]];
[FBSDKAppInviteDialog showWithContent:self.inviteContent delegate:self];
The format of that link will be something like https://fb.me/xxxxxxxxxxxxxxxx
All xs will be replace by a digit.
Try to add also og:title and og:type properties, it works for me
<meta property="og:title" content="My App" />
<meta property="og:type" content="website" />
Adding meta tags would solve this, this is snippet of html from app link created via FB. Fb is adding some extra meta tags on it's app link url page, and it also redirects direct to itunes if opened on a browser.
<html>
<head>
<title>app name</title>
<meta property="fb:app_id" content="your fb app id" />
<meta property="al:ios:url" content="Your app link url" />
<meta property="al:ios:app_name" content="your app name" />
<meta property="al:ios:app_store_id" content="your app id" />
<meta property="al:web:should_fallback" content="false" />
<meta http-equiv="refresh" content="0;url=https://itunes.apple.com/WebObjects/MZStore.woa/wa/redirectToContent?id=your app store id" />
</head>
<body>
Redirecting...
</body>
</html>

Can't get bookmark icon to show in Safari Mobile on iPad

I've been tasked with creating an icon that will represent a site when a user bookmarks it on an iOS device. Following a few tutorials on the subject, I added the following to the <head> section of my page.
<link href="http://mywebthingy/CDN/apple-touch-icon.png" rel="apple-touch-icon" />
<link href="http://mywebthingy/CDN/apple-touch-icon-76x76.png" rel="apple-touch-icon" sizes="76x76" />
<link href="http://mywebthingy/CDN/apple-touch-icon-120x120.png" rel="apple-touch-icon" sizes="120x120" />
<link href="http://mywebthingy/CDN/apple-touch-icon-152x152.png" rel="apple-touch-icon" sizes="152x152" />
This works perfectly when adding a link to the page on the home screen. However, I can't seem to get it to work when adding it as a bookmark in Safari the way the Apple and Disney links are on the default install of the browser. I feel like there's something else that needs doing to get this to work properly but I can't find anything on the web.

Resources