Closed BenBach closed 14 years ago
Basically i want to create a ASP.NET applikation nested in an iframe facebook app without any special membership (without register)
"But if more then one user is accessing the website they are all using the same access token." in facebook, only one user can be logged in at a time, so you have to request the access token for that particular user. at the moment in the canvas sample, i store the access token in session, you might want to store that in a database along with the facebook user id, so when u query the facebook user id and if it doen't return any access token, make sure you request permissions and get the access token for that user.
most probably since the session hasn't expired ur getting the same access token.
let me know if u have any problems (feel free to ask).
Thank you very much!
Right now i am struggling retrieving the facebook user id before doing any form of authentification.
I need to know the user id to know if i have to do a OAuth authentification.
you do not need to know the userid if u want to do the oauth authentication.
the first thing is to get the OAuth access token.
then once you get the access token, you can get the user's id or any other details.
to get user's id.
var fb=new Facebook("access_token");
var user = fb.Get
Have you got the access token yet?
Hi thanks for your help.
The problem was that i had a source from a week before. So i was missing P3PHeaders.
Great to hear that the problem is now solved.
Incase you have more problems feel free to ask.
I am struggling right now combing a facebook canvas applikation with ASP.NET MVC.
I got it working to get a accesToken. But if more then one user is accessing the website they are all using the same access token.
Does somebody might now a solution? Would be a great help
Ben