'Update the share with the given data'

def update(self, data, graph=None):

    result = None
    profile = get_profile(self.user)
    graph = (graph or profile.get_offline_graph())
    shared = self.update_share_dict(data)
    self.save()
    if self.share_id:
        result = graph.set(self.share_id, **shared)
    return result
