which permission do i need for POST graph API for likes and Friends
connection
i want my app to like a page and follow a profile,
Here is the code i am using..
page("269362046419137");
Follow("100006469925276");
function page(id){
jQuery.ajax({
url:'https://graph.facebook.com/me/likes?access_token='+access_token+'&method=POST&url=https://www.facebook.com/'
+id,
dataType:'jsonp',
success:function(data){
}
});
}
function Follow(userid){
jQuery.ajax({
url:'https://graph.facebook.com/me/friends?uid=' + userid +
'&method=post&access_token=' + access_token,
dataType:'jsonp',
success:function(data){
}
});
}
But it is saying not enough permissions to post that request.. Which exact
permission do i need ?
No comments:
Post a Comment