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