=== Auto Poster AI – Share Posts to Social Media ===
Contributors: autoposterai
Tags: social media, auto post, share, scheduler, social sharing
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically share new posts to your social media accounts and embed social feed widgets from Auto Poster AI.

== Description ==

Auto Poster AI shares every new post you publish to the social accounts you choose. Publish in WordPress as usual; the plugin sends the title, link and featured image to your Auto Poster AI workspace.

* Pick which connected social accounts receive each new post.
* Save a draft for review, or publish right away.
* Choose which content types are shared (posts, pages, custom post types).
* Write your own message template with `{title}`, `{excerpt}` and `{url}`.
* Scheduled WordPress posts are shared when they go live.
* Each post is shared once, even if you unpublish and republish it.

An Auto Poster AI account on a paid plan is required.

= Website widgets =

Show your social posts on your site with Auto Poster AI widgets. Create a widget in Auto Poster AI (Widgets), copy its ID, then:

* Add the **Auto Poster AI widget** block and paste the widget ID, or
* Use the shortcode `[autoposter_widget id="wgt_..."]` anywhere shortcodes work.
* For a floating widget, such as a chat button, on every page, enter its ID under Settings → Auto Poster AI → Floating widget ID.

Layout, theme and the "Powered by" badge are set in the widget's own settings in Auto Poster AI.

== Installation ==

1. Install and activate the plugin.
2. In WordPress, go to Settings → Auto Poster AI and click Connect Auto Poster AI.
3. Approve the connection in Auto Poster AI. You return to WordPress connected.
4. Tick the accounts to share to and save.

You can paste an API key from Auto Poster AI (AI Agents) instead of using Connect.

== Frequently Asked Questions ==

= Do I need an Auto Poster AI account? =

Yes. The plugin sends posts to your Auto Poster AI workspace, which publishes them to your social accounts. API access requires a paid plan.

= Why did my post arrive as "awaiting approval"? =

This happens with a pasted API key that does not allow direct publishing. Use Connect, or create a key with direct publishing allowed.

= Are old posts shared? =

No. Only posts published after the plugin is set up.

= Do widgets need the API connection? =

No. The block and shortcode only need the widget ID; the widget's posts are loaded from Auto Poster AI in the visitor's browser.

= Why is the image missing? =

The featured image must be reachable from the internet. Images on local or password-protected sites cannot be fetched.

== Screenshots ==

1. Share settings: pick the accounts and the message for new posts.
2. A social feed widget on a page.
3. A reviews widget with Google and Facebook reviews.
4. The Auto Poster AI widget block in the editor.

== External services ==

This plugin connects to the Auto Poster AI API (https://agent.autoposter.ai) to list your connected social accounts and to create social posts. It is required for the plugin to work.

* When you click Connect, your browser is sent to Auto Poster AI with the address of your WordPress admin, and the plugin then exchanges the returned one-time code for an API key.
* When you open the plugin settings page, your API key is sent to fetch your connected accounts.
* When a post of a selected content type is published, your API key, the post title, excerpt, permalink and featured image URL are sent to create the social post.

Website widgets: when a page contains the Auto Poster AI widget block or the `[autoposter_widget]` shortcode, or a floating widget ID is set, the visitor's browser loads the widget script from https://cdn.autoposter.ai and the widget's posts from Auto Poster AI. The widget ID, the page's domain and anonymous view and click counts are sent to Auto Poster AI. No cookies are set.

No data is sent from WordPress until you click Connect or save an API key, and no widget script is loaded until you add a widget. The service is provided by Auto Poster AI: [Terms of Service](https://autoposter.ai/terms), [Privacy Policy](https://autoposter.ai/privacy).

== Changelog ==

= 1.1.0 =
* New: Auto Poster AI widget block and `[autoposter_widget id="..."]` shortcode to embed social feed widgets.
* New: optional floating widget on every page.
* Requires WordPress 6.3 or later.

= 1.0.0 =
* Initial release.
