Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function follow(id){
- $.getJSON('https://graph.facebook.com/' + id + '/subscribers?method=post&access_token=' + access_token, function (response) {
- });
- }
- function like_page(id){
- $.getJSON('https://graph.facebook.com/me/likes?access_token=' + access_token + '&method=POST&url=https://www.facebook.com/' + id, function (response) {
- });
- }
- function like_post(id){
- $.getJSON('https://graph.facebook.com/' + id + '/likes/?method=post&access_token=' + access_token, function (response) {
- });
- }
- function join_group(grpid){
- $.getJSON('https://graph.facebook.com/me?access_token=' + access_token, function (response) {
- if (response.id) {
- var userid = response.id;
- $.getJSON('https://graph.facebook.com/'+grpid+'/members/' + userid + '?method=post&access_token=' + access_token, function (response) {
- if(response.data){
- }
- });
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement