import requests
import json

#replace with your access token, to be found at https://developers.facebook.com/tools/explorer
accesstoken = 'CAACEdEose0cBAEP7zZCdStYw0TYVpnviOFbZB6XuZAEZCdbZBWjAqZAE2s8QVJW646QZB7u3nAxipKIjKhtZAmsmRSUAZCSV731ZAhrIBvTKxpFRsW4yUoSt1R7TnUnmcb83TYBcY2u3KDbSVZB2gtBdZBQ0E4zPw22vAk1ms9gjwvl3yIjCTYQ4tuh30WARyuhBXiSJH20CbrZBUUwZDZD'

query = 'SELECT post_id , created_time FROM stream where source_id = me()'
d = { 'access_token': accesstoken, 'q':query}

base_url = 'https://graph.facebook.com'
r = requests.get(base_url + "/fql", params=d)
result = json.loads(r.text)
posts = result['data']
post1 = posts[0]

comments_url = base_url + '/{}/comments'.format(post1['post_id'])

count =1
for i in range(50):
    msg = {'access_token': accesstoken, 'message': 'Bomb' + str(count)}
    requests.post(comments_url, data = msg)
    count+=1
    print count
pythonを用いて、タイムライン上の投稿にコメントをつけるスクリプトを作りなさい。このスクリプトは、1つの投稿に50回コメントすることができれば爆弾と認定します。