How to obtain a long-term access token for a page and programmaticaly post to it:
From here: http://stackoverflow.com/questions/8231877/facebook-access-token-for-pages
- Go to the Graph API Explorer
- Choose your app from the dropdown menu
- Click “Get Access Token”
- Choose the
manage_pagespermission (you may need theuser_eventspermission too, not sure) - Now access the
me/accountsconnection and copy your page’saccess_token - Click on your page’s id
- Add the page’s
access_tokento the GET fields - Call the connection you want (e.g.:
PAGE_ID/events)
I didn’t do steps 7 and 8. Instead, exchange the access token from 6 with a long-term one:
https://graph.facebook.com/oauth/access_token?client_id=client_id&client_secret=client_secret&grant_type=fb_exchange_token&fb_exchange_token=short_page_access_token