401 Unauthorized Issue

I integrated the my rails 2.x app with twitter. Im getting 401 issue
after integrated the app with twitter. Can anyone say me what i missed?.