Quote Originally Posted by jamielife View Post
You can do this, but you don't have to as you've already allowed your app to access all your pages.

You could just take the individual page's number (which will be in your browser's address bar when you navigate to the facebook page):



and fill it in for line 96 where you see:

PHP Code:
$page_id "Your page ID"
I'm not talking about the User Access Token - have you tested through your method to insure that it works as you prescribe?

According to my post in this thread (post #147) when I tested using your prescribed method FB gives back an error code of 200

As I stated in my post here in this thread (post #149) according to FB Developers Wiki error 200 is a permission error.

So yes you have the User Access Token that allows posting through the admin privileges granted for that fan page but by not changing the page access token that is different for each page, to the specific access token for that page FB will not allow access by the script.

what you will see in the page access token is the following

Application Number|user ID and User Access Token|Fan Page ID|Fan Page Access Token
the Application Number, User ID and User Access Token remains the same but the Page ID and Page Access Token are what changes from fan page to fan page.

Think about it, it is a extra level of security to help insure fraudulent access and posting onto face book does not occur

{
"name": "Bugs Bunny Frontier",
"category": "Websites",
"id": "29469045921",
"access_token": "some secret string."

"name": "Daffy Duck Play Pen",
"category": "Websites",
"id": "15326801473",
"access_token": "some secret string."

"name": "Mother Goose Brothel",
"category": "Websites",
"id": "19785012358",
"access_token": "some secret string."
},
The above information is what is gleamed from FB by using the procedure I have outlined earlier.

So by simple changing the page ID without changing the page access token that matches produces an FB error code of 200 (Permission Denied) when the update_product.php is called when adding a new product to the zen cart.

When the facebook authorization runs for the first time, FB will look at what session was last used and stored in the cookie session on the users computer to determine which page ID and associated page access token to authorize. Which for those such as myself that mange several pages my not be the one that we want the cart to post to.

I'm not a programmer but I am one hell of a researcher.