-1
在Facebook上找到「在帖子中標記的次數」我需要獲得「在帖子中標記fb用戶的次數」。我已經編碼獲取的基本編碼和我的編碼是:如何在Facebook上使用FB.api()
FB.Event.subscribe('auth.authResponseChange', function(response) {
if (response.status === 'connected') {
testAPI();
} else if (response.status === 'not_authorized') {
FB.login();
} else {
FB.login();
} });
代碼來獲取基本信息是:
function testAPI() {
FB.api('/me', function(response) {
pInfo = document.getElementById("personalInfo");
name = "<strong>Your Name:</strong> "+response.name;
fName = "<br><strong>First Name:</strong> "+response.first_name;
lName = "<br><strong>Last Name:</strong> "+response.last_name;
pLink = "<br><strong>Profile Link:</strong> <a href='"+response.link+"' target='_blank'>"+response.link+"</a>";
gender = "<br><strong>Gender:</strong> "+response.gender;
verified = "<br><strong>Verified:</strong> "+response.verified;
pInfo .innerHTML += name+fName+lName+pLink+gender+verified;
});
FB.api('/me/friends', function(response) {
friendCount = "<br><strong>Friends Count:</strong> "+response.data.length;
pInfo = document.getElementById("personalInfo");
pInfo .innerHTML += friendCount;
}); }
喜歡,我需要證明:
的次數在Facebook上的帖子中標記:(某些值)
感謝您的時間@CBRoe。 這有可能獲得最近三個月的記錄嗎? 這對我來說已經足夠了。 –
您可以嘗試使用我提到的表格/連接。關於「回顧過去」,請查閱關於分頁是如何工作的文檔。 – CBroe
我對FQL有個疑問。我可以在HTML文件中編寫FQL嗎?因此,我不應該使用任何後端腳本。我完全被允許獨自編寫javascript。 –