Bill Banks
Bill Banks

Reputation: 11

How to get the owner of a page

I'm thinking of writing a contact form but I need to get the owner of the form, not the person who filled out the form. How can I do this?

Upvotes: 0

Views: 159

Answers (2)

CoderFromOuterSpace
CoderFromOuterSpace

Reputation: 451

To get the owners of a page, query the page_admin FQL table

fql?q=SELECT uid FROM page_admin WHERE page_id=PAGEID

Upvotes: 1

Mickey Mouse
Mickey Mouse

Reputation: 1771

Not sure what you are looking for here, but for instance if a user who's the owner of the form is logged in where the form is being used, then you can get his username from the $_SESSION array, given that you saved his username into that array upon the login process.

Upvotes: 0

Related Questions