Facebook Page Tab App OAuth - test if fresh app install -
i have page tab app. authorization works fine - user clicks authorize button on app, oauth dialog pops up, authorize app, redirects page tab , user goes merry way, using app.
i need know 1 thing, , life of me cannot find real answer - possible identify 1 http request occurs after user authorizes app? want log user's data when user authorizes app, without having hit database , test if facebook user id has been logged. you'd think easy...
thank time.
yes, can of signed_request
read here how handle authroization in page tab.
simply, when user comes app
- check user_id exits in signed request, if not exist, has not authorized.
- store variable in session
- when user logs in, check whether session variable exists or not. if exists, fresh install.
Comments
Post a Comment