fixed omniauth error by editing controller action
It kept giving an error where saying authentication failed. The problem was that the user wasn't getting saved, hence the authentication wasn't being created.
added route to access user's instagram photos in json format
created photos controller
extracted photo getting methods to photos controller
altered routes from slides to photos to match controller actions
changed routes in coffeescript to match the current routes
added apihelper module to photos controller and removed it from the slides controller
add user_photos permission to omniauth facebook in order to be able to access the users photos
dom structure for instagram photos
configured photo javascript to only load on slide create page
rendered instagram photos and changed dom structure for instagram photos