From: Paul Na Date: 2012-09-21T22:17:42+09:00 Subject: Need advice on a process Hi all, I am making a FB app that has just one page that needs to deal with the database. The process that i have done of far is: On post: Checks if fb user is logged in and app is authorized. Checks if fb user is already in db. if they are it updates the information. else if not then add record. else redirect to /auth/facebook So the bit i need advice with is that i was thinking the fb callback url would be ideal to submit the information of: --------------------------------------- Checks if fb user is already in db. if they are it updates the information. else if not then add record. --------------------------------------- So... if the user is not logged in, they log in, authorized the app, then calls the fb callback url, or if the user is not logged in, they log in, but app is already authorized, then calls the fb callback url, when in both cases it runs: --------------------------------------- Checks if fb user is already in db. if they are it updates the information. else if not then add record. --------------------------------------- Does this sound ok to do. Thanks -- Posted via http://www.ruby-forum.com/.