I want to retrieve the page_id of user owned pages using graph api and fql search .I used $facebook->api('/me/accounts') (Graph API) but its showing an error
error :[message] => An active access token must be used to query information about the
current user.
[type] => OAuthException
[code] => 2500 .
I have also user fql query but its not working .I have a doubt like what and where should i use access tokes and where should i specify managed permissions .