Example #1
0
 def analyze_from(self, from_dic): #Only update the image
     print from_dic["id"]
     pic = get_pic_from_uid(self.fb, from_dic["id"])
     from_dic.update({"pic_square" : pic})
     return pic
Example #2
0
 def analyze_profile(self, profile_id):
     profile = self.fb.fql("select name, pic_square, url from profile where id = " + profile_id)[0]
     pic = get_pic_from_uid(self.fb, profile_id, dimension = "pic_square")
     profile.update({"pic_square" : pic})
     return profile