ERROR: Required meta tag missing (twitter:app:swift:name)


#1

Trying to validate App cards for our website, we’re running into the following error on the validator tool:

ERROR: Required meta tag missing (twitter:app:swift:name)

urls we are trying to validate:


the 2nd format is dynamic, the last part being an ID which will hopefully deeplink to our app. As far as I can tell, we have all required meta tags. Looking at the JSON response from the validator give a bit more insight, but none of the warnings conform to the spec in the docs. Any help would be much apppreciated…

{
"isInternalError": false,
"whitelistInfo": null,
"card": {
    "name": "app",
    "url": "https://www.happiour.com",
    "card_type_url": "https://abs.twimg.com/cards/Swift/8/0c1430b8-51b6-4ae6-b071-cd704dedece6/4B3C34987412EA6B4F04F564328225B0.json",
    "binding_values": [
        {
            "type": 1,
            "key": "card_url",
            "is_optional": 1,
            "string_value": "https://www.happiour.com",
            "scribe_key": "card_url"
        },
        {
            "type": 1,
            "key": "description",
            "is_optional": 0,
            "string_value": "Happiour turns regular moments into better ones. From coffee to cocktails, discover local offers & events, share & invite friends to join you, all in real time"
        },
        {
            "type": 6,
            "key": "googleplay_icon",
            "is_optional": 0,
            "image_value": {
                "url": "https://pbs.twimg.com/media/c3ed5000032863fecf0645956ff4e39b.png",
                "width": 15,
                "height": 16
            }
        },
        {
            "type": 5,
            "key": "site",
            "is_optional": 1,
            "user_value": {
                "user_id": 2469130764,
                "path": []
            },
            "scribe_key": "publisher_id"
        }
    ],
    "card_platform": {
        "device": {
            "name": "Swift",
            "version": "8"
        },
        "audience": {
            "name": "production"
        }
    }
},
"cardName": "App",
"errors": {
    "Card error": "Not whitelisted",
    "twitter:app:swift:name": "Required meta tag missing"
},
"warnings": {
    "twitter:app:swift:currentversionaveragerating": "Required meta tag missing",
    "twitter:app:swift:currentversionratingcount": "Required meta tag missing",
    "thumbnail": "Required field missing",
    "twitter:app:swift:localizedprice": "Required meta tag missing",
    "twitter:app:swift:identifier": "Required meta tag missing"
},
"fcErrors": {},
"fcWarnings": {},
"status": "Excluded",
"urlResolutionStatus": "Ok",
"metaTags": {
    "og:url": "http://www.happiour.com/",
    "apple-itunes-app": "app-id=910867673, app-argument=happiour://",
    "twitter:app:id:iphone": "910867673",
    "og:description": "Happiour turns regular moments into better ones. From coffee to cocktails, discover local offers & events, share & invite friends to join you, all in real time",
    "og:image": "http://www.happiour.com/img/icons/customers/share.png",
    "twitter:url": "https://www.happiour.com",
    "viewport": "width=device-width, initial-scale=1, user-scalable=no",
    "description": "Happiour turns regular moments into better ones. From coffee to cocktails, discover local offers & events, share & invite friends to join you, all in real time",
    "fragment": "!",
    "twitter:app:country": "UK",
    "al:iphone:app_name": "Happiour",
    "twitter:site": "@happiour",
    "og:type": "website",
    "thumbnail": "http://www.happiour.com/img/icons/customers/share.png",
    "twitter:card": "App",
    "twitter:site:domain": "www.happiour.com",
    "og:title": "Happiour - Right thing, Right time",
    "al:iphone:url": "happiour://",
    "twitter:app:name:iphone": "Happiour",
    "fb:app_id": "1379471935668239",
    "twitter:description": "Happiour turns regular moments into better ones. From coffee to cocktails, discover local offers & events, share & invite friends to join you, all in real time",
    "twitter:app:url:iphone": "happiour://"
},
"hasStagingCard": false
}

#2

Have you solved this issue? Have the same problem.

BTW twitter:app:swift:name is not easy to find - each keyword is quite popular on the web.


#3

no solution yet unfortunately…


#4

I have the same problem.
I tried with adding twitter:app:swift:name but it does not pass validation.

Expect official announce.

My URL is following.
http://getpo.st/


#5

The error doesn’t appear anymore, as far as i can tell, that said just minutes after writing the following lines.

At time of writing the error still exists: “ERROR: Required meta tag missing (twitter:app:swift:name)” is shown every time i try to validate, and not to be blacklisted i wait until this error disappears. Or does one have tried to solve it just by “Get whitelisted.”, going straight over the errror message?


#6

We recently deployed a change which should have resolved this issue, glad to hear it is working for you now.


#7

This error is a mistake on our side, apologies. We’ve determined that this occurs when twitter:app:id:xxx is specified incorrectly or refers to an app that is not available in the relevant app store. Try fixing this in your page and re-validating.

We’ll fix the documentation and examples to make all of this more clear.


#8

@andypiper Re this tweet https://twitter.com/Cognizant/status/527452237413769217 – this has a URL that has app-card enabled. On validator, it’s giving this error: ERROR: Required meta tag missing (twitter:app:swift:name) | It used to be fine earlier. Help?


#9

If you’re seeing that error you’ll want to ensure that the App ID is specified correctly, per my comment above.


#10

Thanks, @andypiper.
I have the meta details mentioned on this page. http://www.cognizant.com/perspectives/the-supply-chain-is-dead-long-live-the-value-web
See the app id in twitter cards meta?

439247923 is indeed the ID: The app is https://itunes.apple.com/in/app/cognizant-perspectives/id439247923?mt=8
And more over, this was working till recently.


#11

Hello Andy,
We are facing the same issue. The card validator returns the following log,
INFO: Page fetched successfully
INFO: 22 metatags were found
INFO: twitter:card = app tag found
WARN: Not whitelisted
ERROR: Required meta tag missing (twitter:app:swift:name)

The url that has the metatags is http://playfolly.com/play
The app is live on itunes and google play and the id’s specified on the metatags are correct but we are unable to proceed further because of this issue.

Thanks


#12

Hello Twitter Team,

I would appreciate a response on the swift name issuer as highlighted above. The cards validator still shows the same error while the metatags have the correct data.

Thanks


#13

Hi @nikhilnarayanan,

Here are a couple things to try:

  1. Remove the twitter:app:country meta tag or specify the country. Do not leave it empty. Currently this meta tag is empty.

  2. Remove the twitter:app:id:iphone and twitter:app:id:googleplay meta tags or specify the IDs. Do not leave it empty. Currently this meta tag is empty.

  3. You may also get this error if your app ID does not exists in the US or for the country specified. This is not the issue for you, but it may be for someone else.

I have a working App Card for the Cognizant Perspectives app here as an example:
http://twitter-card-sandbox.herokuapp.com/examples/swifterror/

Thanks for hanging in there. We do have an open issue filed with engineering to improve the error messaging and feedback.

Tracked internally as PREL-11497