开发者

how to get fbs_* cookie after connecting with fb?

开发者 https://www.devze.com 2023-02-15 01:26 出处:网络
I am trying to integrate my comment form with Facebook login with following code: FB_RequireFeatures([\"XFBML\"], function() {

I am trying to integrate my comment form with Facebook login with following code:

FB_RequireFeatures(["XFBML"], function() {

FB.init("appID", "/xd_receiver.html", {"permsToRequestOnConnect":"email"}); } ...

< fb:login-button onlogin="update_user_details();" perms="email" v="2" class=" fb_login_not_logged_in FB_login_button FB_ElementReady">

After user successfully login on facebook via my site, their profile can be displayed in the form < fb:profile-pic uid='loggedinuser' facebook-logo='true' size='normal' height='54'>

But I can not find a cookie named fbs_*! I can only get a session named appid_user, which value is the user ID who just logged. How can get fbs_* cookie?

I noticed, there is a parameter cookie in old FB init method.

  FB.init({
  appId  : "xxx",
  status : true, // check login开发者_StackOverflow status
  cookie : true, // enable cookies to allow the server to access the session
  xfbml  : true, // parse XFBML
});

any similar thing in new FB init method?

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消