def fb_retweet(account_name, password, _id, uid, text, tweet_type, xnr_user_no): print 'account_name,password....',account_name,password operation = Operation(account_name,password) #try: print operation.share(uid,_id,text) mark = True # except: # mark = False message_type = 3 # 转发 # try: # save_mark = fb_save_to_xnr_flow_text(tweet_type,xnr_user_no,text,message_type) # except: # print '保存微博过程遇到错误!' # save_mark = False return mark
def fb_retweet(account_name, password, _id, uid, text, tweet_type, xnr_user_no): print 'account_name,password....', account_name, password operation = Operation(account_name, password) print "uid", uid _id = _id.split('_')[1] print "fid", _id, type(_id) #try: print operation.share(uid, _id, text) mark = True # except: # mark = False message_type = 3 # 转发 try: save_mark = fb_save_to_xnr_flow_text(tweet_type, xnr_user_no, text, message_type) except: print '保存微博过程遇到错误!' save_mark = False return save_mark