def _already_resized_on_fb(self,fn,pid,_megapixels):
logger.debug("<STR_LIT>"%(fn))<EOL>width_fb,height_fb=self._getphoto_originalsize(pid)<EOL>new_width,new_height=pusher_utils.resize_compute_width_height(fn,_megapixels)<EOL>logger.debug("<STR_LIT>"%(fn,width_fb,height_fb,new_width,new_height))<EOL>if width_fb==new_width and height_fb==new_height:<EOL><INDENT>return True<EOL><DEDENT>elif width_fb==new_height and height_fb==new_width:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Checks if image file (fn) with photo_id (pid) has already
        been resized on fb. If so, returns True