Hello! There is a page on which the application is located and the like button is placed. I want to check if the user pressed this button. To do this, I write:

 FB.api({ method: 'pages.isFan', page_id: '276906669071860', uid: flashVars[userIdKey]}, function(resp) { if (resp == true) { alert("like"); } else alert("not " + resp.error_code + " " + resp.error_msg); }); 

But I constantly get error 101 - invalid appliction id . And here application id - I do not understand. How can this problem be solved?

If you try using /USER_ID/likes/PAGE_ID : FB.api('/100004473481322/likes/276906669071860',function(response) .... then response.data - undefined

    1 answer 1

     Есть страница, на которой находится приложение и размещена кнопка like 

    So there is an application!

     Но постоянно получаю ошибку 101 - invalid appliction id. Причем тут application id - не понимаю. 

    Well, it means that you need to insert this application id into the method, and the error, like a wave of a magic wand, will disappear :)

    • and page_id and application_id can match? - Olga Modenova
    • hardly, although anything is possible. But this is not the question that should have arisen from your side. - Artem
    • Now 104 - incorrect signature - Olga Modenova
    • > incorrect signature means it is incorrectly formed. - Artem