@memberjunction/actions-bizapps-social
Version:
Social Media Actions for MemberJunction - Twitter, LinkedIn, Facebook, Instagram, TikTok, YouTube, HootSuite, Buffer
54 lines • 1.56 kB
TypeScript
import { FacebookBaseAction } from '../facebook-base.action.js';
import { ActionParam, ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
import { SocialPost, SearchParams } from '../../../base/base-social.action.js';
/**
* Searches for historical posts on Facebook pages.
* Provides powerful search capabilities including date ranges, keywords, and content types.
*/
export declare class FacebookSearchPostsAction extends FacebookBaseAction {
/**
* Get action description
*/
get Description(): string;
/**
* Define the parameters for this action
*/
get Params(): ActionParam[];
/**
* Execute the action
*/
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
/**
* Search posts from a specific page
*/
private searchPagePosts;
/**
* Implement the abstract searchPosts method
*/
protected searchPosts(params: SearchParams): Promise<SocialPost[]>;
/**
* Get post type from Facebook post
*/
private getPostType;
/**
* Calculate total engagements for a post
*/
private calculateEngagements;
/**
* Sort posts by specified criteria
*/
private sortPosts;
/**
* Get post reach from insights
*/
private getPostReach;
/**
* Calculate search summary statistics
*/
private calculateSearchSummary;
/**
* Get engagement distribution
*/
private getEngagementDistribution;
}
//# sourceMappingURL=search-posts.action.d.ts.map