Kullanıcıların çıkış benim uygulamadan facebook oturum çerezi silmek

0 Cevap php

Ben facebook kendi facebook hesabını kullanarak kullanıcılar oturum bağlanmak kullanan bir uygulama olarak çalışıyorum.

Everything works fine except in the following case: 1. User logged out from my website and facebook. 2. User try to login again in my app.

Facebook açılan "uygulama hatası" diyor açılır bağlamak bu durumda.

I found that the reason is that the old fbs cookie is not being removed on users logout. I have added the code to delete the cookie on logout of my app but the cookie isn´t deleted.

İşte benim kod (Symfony framework kullanarak.) Olduğunu

$fbCookie = 'fbs_'.sfConfig::get('app_facebook_application_id');
          $cookie = $request->getCookie($fbCookie);
          if(!is_null($cookie)){
            setCookie($fbCookie," ", time()-3600);
          }       

Bu işe yaramazsa. Çerez aynı kalır. Beklendiği gibi SetCookie fonksiyonu "1" döndürür.

Ne sorun olabilir?

0 Cevap