I am using django-facebook. Open the Facebook API to try to delay posting with the image on the facebook page. Code (corresponding part):
graph_api = OpenFacebook(integration.long_lived_page_token)
message = "something"
picture = "http://example.com/image.jpg"
d = datetime.datetime.strptime('07-25-2014 06:40 pm UTC', '%m-%d-%Y %I:%M %p %Z')
timestamp = timestamp = int(time.mktime(d.timetuple()))
try:
facebook_response = graph_api.set('/{0}/feed'.format(
facebook_page_id), message=message,
link=picture, picture=picture,
scheduled_publish_time=timestamp, published=0)
except:
...
Everything seems to be working fine (I get the id message on facebook_response), but when the time comes to post this scheduled post, nothing happens. When I check on the facebook page, I see the error message “Sorry, something went wrong while posting this scheduled message” and suggests deleting it or posting after that. Therefore, I cannot understand what I am doing wrong. I found a similar question , but it does not give a good answer.
, , = 0 (.. ), .