2

I use the JS-SDK to Login the Users in my FB-App but directly after the User authorized my App I'm passing a AJAX Request in wich i need the FB-Session in Firefox its working as it should without any special data about the FB-Session but in Chrome and Safari the FB-Session is lost.

So I'm looking for a solution to fix that and thought about sending an signed_request in the Request to save the FB-Session.

1 Answer 1

1

JS-SDK is creating a special cookie for your app on a client called fbsr_APP_ID, which is a signed request, you should be able to get it with every ajax call, verify and obtain access token. No need to pass anything else in order to identify the user.

hope this helps

Sign up to request clarification or add additional context in comments.

3 Comments

Hi, looks like there is a bug in ths JS-SDK the cookie you mean is named "fbs_275xxxxxxx1572" but the PHP-SDK is looking for a cookie named "fbsr_275xxxxxxx1572".
You need to use oauth:true param in FB.init in JS-SDK in order to get the correct cookie. It is now mandatory to use oauth:true.
I thought since the first october its not not mandatory any more because you always use oauth. Thank you for your help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.