facebook app to pull posts in website not working -


i trying pull posts facebook website. created facebook app same(https://www.facebook.com/kcm.edu.np/). code:

$(document).ready(function() {     var accesstoken ='975498622499311|eks53jkww4f74jeshrdhujnwowg';     $.ajax({         url: 'https://graph.facebook.com/v2.5/kcm.edu.np/posts?fields=full_picture,id,is_published,link,story,message,name,updated_time,description,from,source,caption,created_time,permalink_url,type,target&access_token=' + accesstoken + '&limit=6',         type: 'get',          success:function(result){             $("#hidden-next-feed").val(result.paging.next);             $.each( result.data, function( index, value ) {                 var link;                 var imgsrc = '';                 var name = '';                 var message = '';                 if(typeof(value.link) != "undefined" && value.link !== null) {                     link = value.link;                 } else {                     link = value.permalink_url;                 }                 if(typeof(value.full_picture) != "undefined" && value.full_picture !== null) {                     imgsrc = value.full_picture;                 }                 if(typeof(value.name) != "undefined" && value.name !== null) {                     name = value.name;                 }                 if(typeof(value.message) != "undefined" && value.message !== null) {                     message = value.message;                 }                 $("#facebook-feed").append(                     '<div class="grid-item"><a href="'+value.permalink_url+'" target="_blank">'+                     '<div class="thumbnail">'+                     '<img src="'+imgsrc+'" alt="'+name+'" >'+                     '<div class="caption">'+                     '<h3>'+name+'</h3>'+                     '<p>'+message+'</p>'+                     '</div>'+                     '</div>'+                     '</a></div>'                 );             });             $container.masonry('destroy');             $container.imagesloaded(function(){                 $container.masonry({                     itemselector: '.grid-item',                     percentposition: true                 });             });         },         error:function() {             $("#facebook-feed").html('failed load resource');         }     }); }); 

problem:

{    "error": {       "message": "unsupported request. object id 'kcm.edu.np' not exist, cannot loaded due missing permissions, or not support operation. please read graph api documentation @ https://developers.facebook.com/docs/graph-api",       "type": "graphmethodexception",       "code": 100,       "fbtrace_id": "fsblqadb5oz"    } } 

how solve ? help/suggestions welcome. in advance.

the setting of page visibility needs set "visible everyone". option can found under - setting > general > country restrictions.

please try this.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -