Skip to content

Facebook MCP server for automating posts, comment moderation, insights, and sentiment filtering.

Python

add more insight tools

Hagai Hen7ecad5dea005
diff --git a/manager.py b/manager.py
index 6e8007c..5657ac4 100644
--- a/manager.py
+++ b/manager.py
@@ -47,37 +47,37 @@ class Manager:
return self.api.get_bulk_insights(post_id, metrics)
def get_post_impressions(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_impressions")
+ return self.api.get_insights(post_id, "post_impressions")
def get_post_impressions_unique(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_impressions_unique")
+ return self.api.get_insights(post_id, "post_impressions_unique")
def get_post_impressions_paid(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_impressions_paid")
+ return self.api.get_insights(post_id, "post_impressions_paid")
def get_post_impressions_organic(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_impressions_organic")
+ return self.api.get_insights(post_id, "post_impressions_organic")
def get_post_engaged_users(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_engaged_users")
+ return self.api.get_insights(post_id, "post_engaged_users")
def get_post_clicks(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_clicks")
+ return self.api.get_insights(post_id, "post_clicks")
def get_post_reactions_like_total(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_reactions_like_total")
+ return self.api.get_insights(post_id, "post_reactions_like_total")
def get_post_reactions_love_total(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_reactions_love_total")
+ return self.api.get_insights(post_id, "post_reactions_love_total")
def get_post_reactions_wow_total(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_reactions_wow_total")
+ return self.api.get_insights(post_id, "post_reactions_wow_total")
def get_post_reactions_haha_total(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_reactions_haha_total")
+ return self.api.get_insights(post_id, "post_reactions_haha_total")
def get_post_reactions_sorry_total(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_reactions_sorry_total")
+ return self.api.get_insights(post_id, "post_reactions_sorry_total")
def get_post_reactions_anger_total(self, post_id: str) -> dict[str, Any]:
- return self.api.get_insight(post_id, "post_reactions_anger_total")
+ return self.api.get_insights(post_id, "post_reactions_anger_total")