jonathanjordan21 commited on
Commit
74bdd56
·
verified ·
1 Parent(s): ac26503

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -243,7 +243,7 @@ async def fb_post_detail(username: Optional[str] = None, post_id: Optional[str]
243
  try:
244
  post_details = requests.get(
245
  f"https://graph.facebook.com/v20.0/1066512588151225_{post_id}?fields=place,shares,targeting,updated_time,created_time,description,child_attachments,caption,event,message,message_tags,story,status_type,source,coordinates,backdated_time,story_tags,scheduled_publish_time,properties,attachments&access_token={api_access_key}",
246
- headers={"user-agent": "Googlebot",}
247
  ).json()
248
  if post_details.get("updated_time"):
249
  date = post_details.get("updated_time")
 
243
  try:
244
  post_details = requests.get(
245
  f"https://graph.facebook.com/v20.0/1066512588151225_{post_id}?fields=place,shares,targeting,updated_time,created_time,description,child_attachments,caption,event,message,message_tags,story,status_type,source,coordinates,backdated_time,story_tags,scheduled_publish_time,properties,attachments&access_token={api_access_key}",
246
+ headers={"user-agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Chrome/W.X.Y.Z Safari/537.36",}
247
  ).json()
248
  if post_details.get("updated_time"):
249
  date = post_details.get("updated_time")