@SocialOpinions: Weâre able to create a website card without issue. Please see the steps below.
Uploading the image. Please note that: (1) âthe ratio of of image width/height for website cards must be 5:2â (source) and (2) the additional_owners parameter allows you to specify the user(s), by user_id, who are allowed to use the media (source).
$ twurl -X POST -H upload.twitter.com "/1.1/media/upload.json?additional_owners={additional_owners}" --file image.jpg --file-field "media" | jq
{
"media_id": 790053336116453400,
"media_id_string": "790053336116453376",
"size": 96203,
"expires_after_secs": 86400,
"image": {
"image_type": "image/jpeg",
"w": 900,
"h": 360
}
}
Creating the website card.
$ twurl -X POST -H ads-api.twitter.com "/1/accounts/{account_id}/cards/website?name=test-website-card&website_title=test-website-title&website_url=https://twitter.com/&image_media_id=790053336116453376" | jq
{
"data_type": "card",
"data": {
"name": "test-website-card",
"image": {image_url},
"preview_url": {preview_url},
"website_cta": "READ_MORE",
"id": "1aabc",
"account_id": {account_id},
"created_at": "2016-10-23T00:00:01Z",
"website_title": "test-website-title",
"website_url": "https://twitter.com/",
"updated_at": "2016-10-23T00:00:01Z",
"deleted": false,
"card_type": "WEBSITE"
},
"request": {
"params": {
"name": "test-website-card",
"image": {image_url},
"account_id": {account_id},
"website_title": "test-website-title",
"website_url": "https://twitter.com/",
"card_type": "WEBSITE"
}
}
}
If, after following these steps, there are still issues, please provide the requests you are making, using twurl.