Oil prices were headed for a weekly gain on Friday as optimism over demand recovery from China aided sentiments.