How to properly handle session and access token with Facebook PHP SDK 3.0?

前端 未结 5 1930
不知归路
不知归路 2020-11-30 18:05

In the PHP 3.0 SDK there is no getSession() or any session handling from outside the Facebook api available. Some days ago the developers of facebook have also

5条回答
  •  时光取名叫无心
    2020-11-30 18:57

    Hi i've run in the same trouble seems i've solved it with watching the JS API and redirect to the PHP-SDK Login Page if User Information is readable

    example:

    
    

    if the script succed it loads the loginpage, and user got recognized by both JS and PHP SDK ;)

提交回复
热议问题