facebook-graph-api

How to post local image with dialog text in facebook

℡╲_俬逩灬. 提交于 2020-01-05 12:40:53
问题 I have upload images with url image successful on this way NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"https://developers.facebook.com/docs/reference/dialogs/", @"link", @"http://fbrell.com/f8.jpg", @"picture", @"Facebook Dialogs", @"name", @"Reference Documentation", @"caption", @"Using Dialogs to interact with users.", @"description", nil]; AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; [[delegate facebook] dialog:

How to post local image with dialog text in facebook

岁酱吖の 提交于 2020-01-05 12:39:09
问题 I have upload images with url image successful on this way NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"https://developers.facebook.com/docs/reference/dialogs/", @"link", @"http://fbrell.com/f8.jpg", @"picture", @"Facebook Dialogs", @"name", @"Reference Documentation", @"caption", @"Using Dialogs to interact with users.", @"description", nil]; AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; [[delegate facebook] dialog:

jquery.neosmart.fb.wall.js +like count is giving 'undefined people' error

醉酒当歌 提交于 2020-01-05 12:30:25
问题 I am using jquery.neosmart.fb.wall.js plugin to show the fb wall post on my site. But now it is giving me 'undefined people like this' text instead of like count What can be the issue, Does I need to upadte any thing for as per new changes from facebook. Please let me know. 回答1: Solved the issue. Got the solution from forum. Thanx Please check this: https://neosmart-stream.de/forums/topic/undefined-people-like-this-2/ 来源: https://stackoverflow.com/questions/19181087/jquery-neosmart-fb-wall-js

how to delete video

ぐ巨炮叔叔 提交于 2020-01-05 12:23:08
问题 i can upload video to my facebook page via graph api. and i cant delete this video. i trying this but not work (php sdk) $facebook->api("/VIDEO_ID", "DELETE", array('access_token' => 'ACCESS_TOKEN')); this request responsing bellow error GraphMethodException: Unsupported delete request. but i can deleting this way any feed post i have manage_pages permission. im sorry for my bad english 回答1: It's not supported to delete videos via the API 来源: https://stackoverflow.com/questions/8507599/how-to

Facebook Api v2.2 - get album's photos shares count

爷,独闯天下 提交于 2020-01-05 10:28:22
问题 I'm using the following Graph Api query in order to receive the likes and comments counts on all the photos in an Album inside my page: https://graph.facebook.com/v2.2/album_id?fields=photos.limit(250){likes.limit(1),comments.limit(1),id,source},likes.limit(1)&access_token=my_access_token I want to to also receive each one of these pictures shares count, but the share count is not connected to the photo end point, Its connected to the page_story_id. So, in order to receive all the shares

Facebook user location using fb.api

和自甴很熟 提交于 2020-01-05 10:25:51
问题 I want to allow my user's to login with facebook and while user do that i want to collect there information such as Name,Email,Location, Gender etc. There are two issues that i am facing FB.api not always returns me user's location. I am not able to get the user's birthday using user_birhtday. Code is given below. FB.getLoginStatus(function(response) { if (response.status === 'connected') { FB.api('/me?fields=age_range,name,location,email,gender', function(response) { //Get the user's

Facebook user location using fb.api

流过昼夜 提交于 2020-01-05 10:25:14
问题 I want to allow my user's to login with facebook and while user do that i want to collect there information such as Name,Email,Location, Gender etc. There are two issues that i am facing FB.api not always returns me user's location. I am not able to get the user's birthday using user_birhtday. Code is given below. FB.getLoginStatus(function(response) { if (response.status === 'connected') { FB.api('/me?fields=age_range,name,location,email,gender', function(response) { //Get the user's

Passport.js & Facebook Graph API

依然范特西╮ 提交于 2020-01-05 10:03:09
问题 I have some issue with Passport.js and Facebook Graph API 2.0. I cannot get my own friend list (returning empty array, but working fine if I requesting my own feed) if using the access token that I got from Passport but it is working fine if I copy the access token that I got from the Facebook graph explorer. Anyone have experience this issue? I need your help. So, here is some of my code: the routes and scope: app.get('/auth/facebook', passport.authenticate('facebook', { scope: ['user

Extracting page id from a facebook page url

◇◆丶佛笑我妖孽 提交于 2020-01-05 09:05:26
问题 I have an application where when a user enters their facebook fan page url, I extract the page id and store that into the database to be used later in facebook graph api. I have added the following js to extract page id: <script> var fburl= "https://www.facebook.com/audi"; if(fburl.indexOf("?") != -1) { var fburl_new=fburl.split("/"); var fburl_newer=(fburl_new[fburl_new.length-1]) var fburl_newer =fburl_newer.split("?"); var fbnameonly=(fburl_newer[fburl_newer.length-2]); } else { var

ObjectForKey always returning null or 0 when I know the value to be 1

时光毁灭记忆、已成空白 提交于 2020-01-05 08:51:17
问题 I've made a call to retrieve a user's active permissions using self.permissionRequest = [facebook requestWithGraphPath:@"me/permissions" andDelegate:self]; (I set the FBRequest object so I can identify it in the delegate method) In the delegate I call: if (request == self.permissionRequest) { DLog(@"Result: %@", result); } And I get a nice print out of active permissions: Result: { data = ( { bookmarked = 1; "create_note" = 1; email = 1; installed = 1; "photo_upload" = 1; "publish_stream" = 1