Twitter - share is not working properly


#1

I have checked in debugger tools as well as in view page source, and found the meta tags as following.

<meta name="title" content="Test page" />
<meta name="description" content="content ..." />
<meta property="og:title" content="test facebook" />
<meta property="og:description" content="Testtest" />
<meta property="og:site_name" content="Test" />
<meta property="og:image" content="path/to/image" />
<meta name="twitter:title" content="Test Twitter" />
<meta name="twitter:description" content="content ..." />
<meta name="twitter:domain" content="Title" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:image" content="path/to/image" />

But while sharing the image is not showing in twitter. As well as the title and description.

Can you please let me know, If I am missing anything here.

Thanks in advance.


#2

The card will not show in the Share dialog on the web. It should show in the Tweet once posted on Twitter.

You’ll need to use a fully qualified https URL for images etc.


#3

Hi Andypiper,

After tweeting also, its not showing the imageas well as its showing default tiltle as in
<meta name="title" content="Test page" /> not as per this <meta name="twitter:title" content="Test Twitter" />.

Thanks in advance.


#4

Is there any solution for the above?

Since when I am validating the page in twitter card validator, its showing me the picture. But when tweeting its not showing me the correct info.

You can see the attachment image

Thanks In Advance.


#5

What’s the website URL? it looks like this should work when you post the URL in a Tweet. Can you point me to a Tweet where you’ve tried it, and the Card doesn’t show?


#6

Yes I did. Please check. Thanks.


#7

Per the @reply on Twitter, you need to use a fully-qualified URL with a DNS address, not an IP address, in order for Cards to work. Thanks.


#8

Hi Andy,

Thanks for the reply. Yes after changing this to DNS address, now the image and title is coming correctly. But the description is not coming from twitter:description meta tag rather its coming from og:description meta tag.

Here is the meta tags.
<meta name="title" content="Test page" /> <meta name="description" content="text ..." /> <meta property="og:title" content="test facebook" /> <meta property="og:description" content="Test Facebook Description" /> <meta property="og:site_name" content="Title" /> <meta property="og:image" content="" /> <meta name="twitter:title" content="Test Twitter" /> <meta name="twitter:description" content="Test Twitter Description" /> <meta name="twitter:domain" content="Title" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="" />

Is there anything we need to do here?

Thanks in advance.


#9

I just tested in the validator and through a Tweet and it seems to be pulling in the correct information.


#10

Hi If I check the url in card validator it is showing me the below errors. Please suggest me what should I do. Also, I have added twitter card but it is not fetching the twitter details while. It is fetching Facebook og tag details. I have added the twitterbot in robots.txt file also. Waiting for the answer


#11

What errors are you seeing?


#12

ERROR: Fetching the page failed because it’s denied by robots.txt. This is the error I am getting.


#13

and what page are you trying to validate? it is really difficult for us to debug if you don’t share this.


#14

http://beta.beroeinc.com/blog/TESTURL5/ This is the page i am trying to validate


#15
curl http://beta.beroeinc.com/robots.txt                                              
User-agent: Twitterbot
Disallow: /

So the robots.txt file explicitly prevents Twitterbot from crawling the site. This cannot work.


#16

What should I give in the robot.txt file


#17

This information is in our Troubleshooting guide. Please review that.


#18

Thanks andypiper, But somehow I was not able to fix it. Can you give me some more hint. The url on which I want to test is http://beta.beroeinc.com/blog/brexit/


#19

Edit the file http://beta.beroeinc.com/robots.txt

Delete all the lines currently in the file.

Put these lines instead:

User-agent: Twitterbot
Disallow:

Save the file.


#21

It looks like you are using Meteor?

I tried fetching your page using curl:

curl -A Twitterbot -L http://pluglinks.com/

I do not see any meta tags in the source that is returned. Note that the cards crawler cannot execute any javascript so you need to have static tags in the right places in the source.