@sorich87’s answer is 99% there. The difference is that All-in-One SEO Pack follows certain best practices and uses a prefix of '_aioseop_' on its meta keys. That makes the actual working code look more like this:
$my_post = array(
'post_title' => 'title',
'post_content' => $post,
'post_status' => 'publish',
'post_author' => 1,
'post_date' => date('Y-m-d H:i:s', $oldtime),
'post_category' => array(3,4)
);
$post_id = wp_insert_post( $my_post );
if( !is_wp_error($post_id) && $post_id > 0 ) {
add_post_meta($post_id, '_aioseop_keywords', $keywords);
add_post_meta($post_id, '_aioseop_description', $description);
add_post_meta($post_id, '_aioseop_title', $title);
}
Here’s a screenshot of the All-in-One SEO Pack specific records in the wp_postmeta table of my test system using Navicat for MySQL to view them:

(source: mikeschinkel.com)
Related Posts:
- How can I make it so the Add New Post page has Visibility set to Private by default?
- How to moderate posts
- Should a SEO plugin be necessary? [closed]
- Show Similar Post Titles ( Similar to Stack Exchange )
- How to add option box in “Edit Post” plugin API?
- How do I unlock a post programmatically?
- How to work with Syntax Highlighter Evolved?
- User-Specific Timezones? Hack? Plugin?
- Delete Post With No Traffic?
- Automatically Creating Posts for Popular Forum Topics or Products [closed]
- Let readers suggest edits from the frontend
- jQuery plugin only in one page/post
- Auto-post to multiple sites like Posterous? [closed]
- Share buttons on article footer
- How to create a Page alias in WordPress
- How to extract images of post and pages excluding header and logo image in wordpress?
- Dynamic HTML not displaying at respective place
- Is there a plugin to display certain posts on certain pages? [closed]
- Custom Post Type causes Page Not Found
- How to filter content post only on save
- Is there plugin to show recent posts from one website in the widget area of another?
- How use %like% in sql statement wordpress
- Get the url of the full sized attachment image using post ID?
- Adding Attachment Display Settings in custom media frame
- Output HTML only on individual post view
- Portfolio + Blog: multisite or plugin?
- How to enable qTranslate languages tabs in custom plugin page
- How do I “get the next 10 posts after post_id == x”?
- Calendar Solution: Handling upcoming Dates with Posts?
- get_post_type on post.php
- How to hide some section in WordPress under Post
- WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
- posts comments goes to trash
- Add category selection to custom post type (plugin)
- How to delete all trashed item in one-go
- Custom setup of wordpress comments that are displayed
- How to get all posts belongs to a user between a certain date
- wordpress content .php file in an iframe’s src in a wordpress post
- Don’t publish/update a post when a plugin finds errors in custom fields
- Moving FB comments at the end of page
- Function added to hook “new_to_publish” not executing – custom plugin
- Creating an admin meta box to save post as pending
- Article content navigator in wordpress like mbaskool website
- I would like to remove date display on photo preview
- Getting a list of the published posts
- Change website directory safely to add a static page on startup
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- Custom Template for wordpress cpt plugin
- Get data from wp_posts of mysql in to variables of wordpress-php script
- WordPress “Add new tag” button is not working
- WordPress Stats Plugin: Display Post Views [closed]
- Problem with ajax plugin for refreshing posts
- Add posts from other WordPress blog to the current one
- Link Posts to External URL
- How do I allow users to supply a photo/image to be used instead of the grey/white silhouette?
- Help to Create a Simple Plugin to make a post
- New posts are not showing up on my front page
- Is there a hook similar to “save_post” which only fires AFTER the post is completely published?
- How to display the custom post related blog by category?
- WP Forms not displaying,becomming an fatal error
- WordPress hide post from custom post-type on a single page
- Show post object of any page in frontend
- Trying to add a new feature in my wordpress website
- Powerpress upload a podcast without creating a post for it
- automatically set random featured image by category in wordpress on post
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Pagination (including title of each page) in a post for a long posts
- How to upload PDF from Front-End and post automatically?
- How can I get the Post ID and Post Type within a Must Use Plugin?
- Get value from an input field and pass into update_meta_data as $meta_value
- Get content and send to 3rd party
- Include post_date in search
- Add Filter to get_next_posts_link
- Is it possible to get a shortcode generated by a plugin, then, using a function, create a new post using that shortcode?
- WordPress Dashboard organize posts based on categories
- Add new post using a page inside the website
- Trending Tags based on post views
- Different email notifications (about pending posts) to different users
- How to display single arbitrary facebook post with a shortcode?
- Related posts popup
- How to Batch Upload .docx Files as Posts
- Find And Add Category to Posts
- Retrieve post thumbnails
- Get page type to display content
- Insert data in custom table during new post creation
- Capturing POST data
- Get a submitted value from front end post form for single template
- Automatically set posts to NoIndex depending on category?
- Notification When Post Approved
- Automatically put a menu on every post
- Windows 10 Printer that Sends to WordPress [closed]
- hide particular category post from front page only [closed]
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- Can i have limit posts on a specific category and automatically remove older ones?
- Redirect a specific User role not admins automatically to view the post that they just updated
- warning wp session
- How to add portfolio category post count in main navigation menu?
- What is the easiest way to create a custom field archive?
- This is a plugin code that supposed to add badge/label Infront of post title but i don’t understand why it is showing the code tags in frontend
- How to show custom post type in all post section?