jonathanjordan21 commited on
Commit
aaa2ba1
·
verified ·
1 Parent(s): 6dbbe0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -241,7 +241,7 @@ async def fb_post_detail(username: Optional[str] = None, post_id: Optional[str]
241
  if not post_id:
242
  post_id = url.split("/")[-1]
243
  try:
244
- post_details = requests.get(f"https://graph.facebook.com/v20.0/1066512588151225_{post_id}?access_token={api_access_key}&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").json()
245
  date = post_details.get("updated_date")
246
  except Exception as e:
247
  print(e)
 
241
  if not post_id:
242
  post_id = url.split("/")[-1]
243
  try:
244
+ post_details = requests.get(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}").json()
245
  date = post_details.get("updated_date")
246
  except Exception as e:
247
  print(e)