Facebook login button works only on the second click

前端 未结 1 1939
余生分开走
余生分开走 2021-01-27 07:01

I\'m using the php facebook class and put a login button on my page with $f->getLoginUrl(), the problem is this button does not work at first time I click on it.

1条回答
  •  情书的邮戳
    2021-01-27 07:08

    Have you added the standard FB handlers in your javascript portion? They are supposed to reload the page and set some cookies for the facebook API to work...

    
    

    0 讨论(0)
提交回复
热议问题