I’m just admin of a page and programming a script to add events to that page. I could use my own account and allow the app to manage my pages and add event to that page. But I want that my Script adds the event such as I would be logged in to the page and publish the event as the page. How can I do this in PHP – I’m currently a little bit confused by all the sessions, tokens and keys 😐
Greetings
Denis
To publish as a page you need to get the user page admin token….
Abbreviated version of Page Authentication: (added offline_access)
From http://developers.facebook.com/docs/authentication/
Get the token with manage premissions and offline_access: (update with YOUR_APP_ID and YOUR_URL
Once you authenticate the page, you will be redirected to YOUR_URL…
In the browser you will see the redirect url, a hash, the access token, expires…
copy everything between the ‘token=’ and ‘&expires=0’ (if it doesnt have expires=0 you did not do offline access premissions)