Uniaff commited on
Commit
f2d0404
1 Parent(s): 2cc2995

Update func_facebook.py

Browse files
Files changed (1) hide show
  1. func_facebook.py +4 -2
func_facebook.py CHANGED
@@ -12,7 +12,8 @@ def hide_negative_comments(token):
12
  def get_facebook_posts():
13
  print("Получение постов.")
14
  params = {
15
- 'include_inline_create': 'true'
 
16
  }
17
  graph = init_facebook_client(token)
18
 
@@ -150,7 +151,8 @@ def get_posts(page_id, page_access_token):
150
  url_ads = f"{GRAPH_API_URL}/{page_id}/ads_posts?include_inline_create=true"
151
  params = {
152
  "access_token": page_access_token,
153
- "fields": "id,message"
 
154
  }
155
 
156
  posts = []
 
12
  def get_facebook_posts():
13
  print("Получение постов.")
14
  params = {
15
+ 'include_inline_create': 'true',
16
+ "limit": 30
17
  }
18
  graph = init_facebook_client(token)
19
 
 
151
  url_ads = f"{GRAPH_API_URL}/{page_id}/ads_posts?include_inline_create=true"
152
  params = {
153
  "access_token": page_access_token,
154
+ "fields": "id,message",
155
+ "limit": 30
156
  }
157
 
158
  posts = []