Passing Facebook authentication from Javascript to PHP

I’m trying to set up offline access for my Facebook App. The javascript part is in place, having the user authenticated at all. However I can’t for the life of me seem to send the authentication...