I've been working on this for a while now and I can't seem to get it to work. It seems to be a frequently asked, but a rarely well-answered question.
I want my website's users to link their facebook account with my website. So they can see their stream e.t.c on my site.
At the moment, each time they log into my site they have to connect with facebook again. I want to have the option for users to give me offline_access to their data, so they don't have to re-login to facebook/re-connect with my site each time they come to my site. As its kind of the point of my site in general.
To do this I understand I need to get offline access. (https://developers.facebook.com/docs/authentication/) Though from my searching it seems to be a bit light on documentation ( Facebook offline access step-by-step ).
I already know how to ask for offline access I'm just unsure of how to get the data from it.
So my questions are as follows;
- How do I get the new infinate Session key after I request it?
- Once I have it and store it in the database - How do I create a facebook user with it instead of just going through the normal limited access key?
Just for further info. I'm using PHP (codeigniter) with Eliot Haughin's Facebook connect library Though if you can give me code using the regular php library I'll just convert it
Thanks very much