Returns dictionary of photosets retrieved from fb
        d['title']['number_photos'] : Number of photos
        d['title']['id']            : ID of photoset
        d['title']['photo_id']      : ID of primary photo
        d['title']['url']           : URL to photoset

def _getphotosets(self):
        """Returns dictionary of photosets retrieved from fb
        d['title']['number_photos'] : Number of photos
        d['title']['id']            : ID of photoset
        d['title']['photo_id']      : ID of primary photo
        d['title']['url']           : URL to photoset
        """
        sets={}
        if not self._connectToFB():
            print("Couldn't connect to fb")
            return sets

        # Gets facebook albums
        psets = self.fb.get_connections(USER_ID,"albums")['data']
        for myset in psets:
            key=myset['name']
            sets[key]={}
            try:
                sets[key]['number_photos']=int(myset['count'])
            except:
                sets[key]['number_photos']=0
            try:
                sets[key]['photo_id']=myset['cover_photo']
            except:
                sets[key]['photo_id']=None

            sets[key]['id']=int(myset['id'])
            sets[key]['url']=myset['link']

        return sets