I have a problem with the Facebook login. Currently I’m using login url (getLoginUrl( $params=array())), which automatically takes care of the user authentication and app authentication / authorization.
This means, that when the new user opens application, FB automatically redirects him to the authentication page.
In such cases, I would rather receive information, that this user has not yet authenticated my app. This would give me a chance to show new users some additional information about the app, before they face the FB authentication page.
I guess that I’m looking for a function, which would return, whether the current user has already authenticated my app or not.
Is there a way to retrieve this kind of information form FB?
Are you currently redirecting automatically with header() or something? Something like this maybe helps?
Also thumbs up whit this approach- I think it’s more user friendlier to not redirect automatically before showing user what your app promises. Maybe my demo app helps also? http://eagerfish.eu/example-facebook-iframe-app-using-graph-api-through-php-sdk/