How to verify a users facebook id when making ajax posts to php in facebook app
I am looking for a way to verify a users facebook id when posting user specific data using ajax. I want to be able to verify that a facebook user id is correct when posting data using ajax. The problem being, that if I post the facebook id as part of my ajax data, it can be edited in the javascript. I could make a graph call on the server side, but these are really slow, so I want to keep graph calls to a minimum. Preferably only calling it at the beginning. Can any suggest an efficient/secure method? In the end my solution was to grab the users facebook id via the php sdk and creating a hash