Twitter Cards : How to use only 2 images in twitter gallery card? - meta

Here are the meta tags for twitter cards :
<meta name="twitter:card" content="gallery">
<meta name="twitter:site" content="#site_creator">
<meta name="twitter:creator" content="#site_creator">
<meta name="twitter:title" content="Top 10 Things Ever">
<meta name="twitter:description" content="Up than 200 characters.">
<meta name="twitter:image0:src" content="http://placekitten.com/200/200">
<meta name="twitter:image1:src" content="http://placekitten.com/300/300">
<meta name="twitter:image2:src" content="http://placekitten.com/350/350">
<meta name="twitter:image3:src" content="http://placekitten.com/150/150">
<meta name="twitter:domain" content="YourDomain.com">
<meta name="twitter:app:name:iphone" content="Vine">
<meta name="twitter:app:name:ipad" content="Vine">
<meta name="twitter:app:name:googleplay" content="Vine">
<meta name="twitter:app:url:iphone" content="vine://v/93582sxlkjf">
<meta name="twitter:app:url:ipad" content="vine://v/93582sxlkjf">
<meta name="twitter:app:url:googleplay" content="http://vine.co/v/93582sxlkjf">
<meta name="twitter:app:id:iphone" content="id592447445">
<meta name="twitter:app:id:ipad" content="id432984038404">
<meta name="twitter:app:id:googleplay" content="co.vine.android">>
If I do not place following meta tags , gallery card does not work.
<meta name="twitter:image2:src" content="http://placekitten.com/350/350">
<meta name="twitter:image3:src" content="http://placekitten.com/150/150">
I need to place two images only, Can you please help me to solve this ?
Thanks in advance.

Did you try to fake it out by providing place holders with either an empty content link (content="") or else linking to images that are really tiny (like 1x1 pixel or something)?

Gallery Card was deprecated on July 3, 2015 and has been mapped to the Summary Card with Large Image.

Related

Bootstrap not responsive on iOS

I am using Bootstrap 3 for my website and I can't figure why it's not responsive on iOS (shows like the desktop view). I have already do a quick search about this problem and yes I use the template code provided by Bootstrap but it still doesn't seem to work. Here is the beginning of my code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laurent Doucet — Graphic designer</title>
<meta name="description" content="—">
<link rel="icon" href="img/favicon.png">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/fonts.css" rel="stylesheet">
Here is my website: http://www.laurentdoucet.be
Thanks a lot for the help.
Your use of frames is preventing your viewport tag from working.
You need to include a viewport meta tag in the outer page also:
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>www.laurentdoucet.be</title>
</head>
<frameset>
<frame src="http://www.bepxlagency.be/laurentdoucet/" name="redir">
<noframes>
<p>Original location:
http://www.bepxlagency.be/laurentdoucet/
</p>
</noframes>
</frameset>
</html>

Twitter Product Card - Multiple Pages

I have a product which has 3 pages:
http://www.example.com/myproduct
http://www.example.com/myproduct/more
http://www.example.com/myproduct/images
I want to add a product twitter card:
<meta name="twitter:card" content="card">
<meta name="twitter:site" content="#mytwitter">
<meta name="twitter:title" content="My Product Title">
<meta name="twitter:description" content="Product Description goes here...">
<meta name="twitter:url" content="http://www.example.com/myproduct">
<meta name="twitter:image" content="http://www.example.com/product.jpg">
<meta name="twitter:data1" content="$3">
<meta name="twitter:label1" content="PRICE">
<meta name="twitter:data2" content="San Franscisco, CA">
<meta name="twitter:label2" content="LOCATION">
What I want to achieve is that the product image, description, price, and location should be shown from all 3 pages when the user shares any of the pages.
My questions is how can I achieve this, and is it better to use <meta name="twitter:url" content="http://www.example.com/myproduct"> for all 3 pages, or use the canonical url of each page.
In order to display the same Product Card for any of the three pages of your product, all you have to do is simply making sure you provide the same markup tags on all of them.
In fact, you don't even have to specify any twitter:url tag in Twitter Cards. The URL the user will be redirected to when clicking is automatically the one that has been shared in the Tweet.

facebook share no work on facebook ios app

I'm tryng to make a share button like youtube, where you can chose if you want to share the content into a page that you own.
Here my js code to open share window:
function share(url){
myWindow = window.open('http://www.facebook.com/sharer.php?u='+url, '',
'width=700,height=350');
myWindow.focus();
}
Then I add to the shared content the OG metas:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta property="og:url" content="https://my-url.com/content">
<meta property="og:title" content="content title">
<meta property="og:description" content="description title">
<meta property="og:type" content="video.other">
<meta property="og:image" content="http://my_url.com/image.jpg">
<meta property="og:video" content="http://my-url.com/content">
<meta property="og:video:secure_url" content="http://my-url.com/content">
<meta property="og:video:type" content="application/x-shockwave-flash">
<meta property="og:video:width" content="400">
<meta property="og:video:height" content="300">
<meta property="og:site_name" content="site name">
<meta property="fb:app_id" content="APPID">
<meta property="fb:admins" content="admin_id">
It works correctly, but when I share something by this way and I try to open it by the Facebook iPhone APP from my wall or from a friends wall, it doesn't works.
Thanks in advance.

Share HTML 5 player to facebook and issue with IPAD

I have shared an mp4 video using Facebook graph API.It works fine on my browsers but it will play when i access facebook from my IPAD.
anybody know what is the issue?
This is my meta tags
<meta property="og:url" content="http://zoowork.com/binitha/flvshare/testhtml6.php?id=8988">
<meta property="og:description" content="test.">
<meta property="og:video:width" content="600">
<meta property="og:video:height" content="338">
<meta property="video:release_date" content="2012-06-26 14:00:00">
<meta property="video:tag" content="ass">
<meta property="video:tag" content="ddddd">
<meta property="video:duration" content="144">
<meta property="og:video:type" content="video/mp4" />
<meta property="og:video" content="http://zoowork.com/binitha/flvshare/sample.mp4" />
<meta name="sailthru.image.thumb" content="http://zoowork.com/binitha/flvshare/fru.jpg">
<meta name="sailthru.image.full" content="http://zoowork.com/binitha/flvshare/fru.jpg">
<meta property="og:image" content="http://zoowork.com/binitha/flvshare/fru.jpg">
It's not a 100% clear what the problem is from the question. What does happen on the iPad instead?
One wild guess looking at the information we have would be to add a secure video url to the meta tags. If that is not provided and you are browsing Facebook over SSL, the video will not be displayed.
Add the following line to your head:
<meta property="og:video:secure_url" content="https://zoowork.com/binitha/flvshare/sample.mp4" />
Of course, the video actually has to be available under that url.
the uri is wrong
the mp4 has to be encoded with baseline profile or it wont work on iOS:
http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/UsingHTTPLiveStreaming/UsingHTTPLiveStreaming.html

asp.net mvc meta description character issue

I designed the layout view page like this,
<!DOCTYPE html>
<html lang="tr">
<head>
1 <META http-equiv=content-type content=text/html;charset=windows-1254>
2 <META http-equiv=content-type content=text/html;charset=utf-8>
3 <META http-equiv=content-type content=text/html;charset=iso-8859-9>
<title>#ViewBag.Title</title>
<meta name="description" content="#ViewBag.Description"/>
and when run the application and view the borwser source, some caharecters are appeared invalid as following.
<meta name="description" content="sürü"/>
Use #HTML.Raw(...) like this:
<title>#Html.Raw(ViewData["Title"])</title>
You have 3 different charset META-tags which makes absolutely no sense.
Otherwise META "description" looks fine - contains properly encoded value of "sü;rü" string.

Resources