php OAuth and filter code