Hi,

I have mulitple fan pages with FB accounts and I need to publish on particular page dynamically.

So I am thinking to do in this way:

1. Getting access_token in curl
2. Getting pageid and page token
3. Executing update_product.php in cron job

I have executed facebook_authorization.php script to get access_token value but getting following error:

Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in XXXX\autofacebooknew1\facebook_authorization.php on line 532

Could anyone please let me know how to fix this error?

Page tokens: How can I get particular page id and/or page token values when there are multiple pages?

access_tokens: I am able to get access_token value using a curl script. Is it enough to publish on particular page? I mean - no permission request dialogue needed?

Please help. Thanks in advance.

Regards,
Naresh Kumar N