-1
我想在用户关注某人或喜欢帖子后执行另一个功能。Instagram的按钮或按钮按钮返回任何值(PHP)?
instagram按钮按钮或像按钮返回任何值如真或假。所以我可以在之后执行任何操作?
还是有另一种选择?
我想在用户关注某人或喜欢帖子后执行另一个功能。Instagram的按钮或按钮按钮返回任何值(PHP)?
instagram按钮按钮或像按钮返回任何值如真或假。所以我可以在之后执行任何操作?
还是有另一种选择?
根据Instagram API文档(https://instagram.com/developer/endpoints/likes/#post_likes),成功响应的JSON响应应如下所示。
{
"meta": {
"code": 200
},
"data": null
}
它看起来并不像是有任何数据返回。但是,您可以像这样使用内置的AJAX Success回调。
$.ajax({
type: 'POST',
url: 'your url here',
data: 'your data here in the form of an object',
//The success function will operate if the server compeletes is task,
//or in this case, if the post is liked
success: function(){
}
});
有什么建议吗? – Ali