dimanche 19 avril 2015

how to get similar pages by category and their likes using facebook graph api

i am using this link in facebook grap explorer and it works


http://ift.tt/1HK5N36


but i am trying to access the same data in the given below code without giving id because id gives an error of non existing feilds



function Getpage()
{
FB.api("/search?q=education?education&type=page", function (response) {

});

}


it does not work but same if i try acessing in that way it gives takes http/graph/facebook/ as id



function Getpage()
{
FB.api(" /http://ift.tt/1HK5N36", function (response) {
var i = 25;
var g = response.data[i];
});

}


it doesnot return the same data as in graph explorer the above link returns i tried acess token even but using javascript how should i get similar pages of same category? like this the first link returns in graph explorer



{
"data": [
{
"category": "Education",
"name": "EducationUSA",
"id": "72457958318"
},
{
"category": "Education",
"category_list": [
{
"id": "108051929285833",
"name": "College & University"
},
{
"id": "163917800330437",
"name": "Admissions Training"
},
{
"id": "181053558607965",
"name": "Youth Organization"
}
],
"name": "Education Diffusion",
"id": "180364528818411"
},


how to get their likes also?


Aucun commentaire:

Enregistrer un commentaire