Take the 2-minute tour ×

Here is my code, this is working fine only on apps developer account. WT is my wrong?

window.fbAsyncInit = function() {
var APP_ID   = 'XXXXX';
var PAGE_ID  = 'XXXXX';

    appId  : APP_ID,
    status : true, // check login status
    xfbml  : true,  // parse XFBML

FB.api('/me/likes/' + PAGE_ID, function(response) {
    t = $.toJSON(response);


developer account:

{"data":[{"name":"111222333","category":"Small business","id":"281428705206834","created_time":"2011-09-02T14:14:37+0000"}]}

non-developer account:

{"error":{"type":"OAuthException","message":"An active access token must be used to query information about the current user."}}
share|improve this question
Is your application in sandbox mode (inside app settings)? –  ifaour Sep 3 '11 at 21:05

2 Answers 2

It might have something to do with the page settings. If the page is set to be invisible, as in only visible for the administrators of that page, that could be a cause why you are getting that error.

Have you set your page available for everyone?

share|improve this answer

In order to see a user likes with graph api you will need the permissions to do so. user_likes


share|improve this answer

Your Answer


