Is there a way to use facebook connect api in a static way?
When we use facebook php sdk, the link or button to enter facebook is something like https://www.facebook.com/dialog/oauth ................. .
I want to exclude the inclusion of php sdk on each page, because this will cause some additional processing and server load at peak times.
I want to do a session check to find out if the user is logged in, checking, for example, if his user ID and username are stored in the session, and if not, display a static login button. then after logging into facebook, it gets into facebook-login.php, which will include php sdk facebook and process its data and store it in a session so that it stays on without php sdk on each page.
the url structure that I get with $ facebook-> getLoginUrl () is:
https://www.facebook.com/dialog/oauth?client_id= {MY_APP_KEY} & scope = {PERMISSIONS} & redirect_uri = {MY_SITE / facebook-login.php} & status = {A_32_CHAR_CODE_LIKE_MD5_MAYBE}
Final question: WHAT WAS THE URL IN THE LOGIN BUTTON?