Twitter App Card 403 error

ios

#1

I have been trying to use the App Card in my app. The card displays just fine but when I press “Tweet” I get the following error.

{
NSErrorFailingURLKey = “https://caps.twitter.com/v2/cards/create.json”;
NSLocalizedDescription = “Request failed: forbidden (403)”;
NSLocalizedFailureReason = “Twitter API error : Forbidden. (code 200)”;
}

I have checked the documents and didn’t find anything. I am using a valid TWTRSession because when I use it in the following request it works fine.
SLRequest *tweet = [SLRequest requestForServiceType:SLServiceTypeTwitter requestMethod:SLRequestMethodPOST URL:[@“https://api.twitter.com/1.1/statuses/update.json” url] parameters:parameters];


#2

Has your app been whitelisted by Twitter to post a Tweet containing an app card?
https://docs.fabric.io/ios/twitter/compose-tweets.html#requirements

If not, then a 403 Forbidden is the expected response.