facebook-graph-api

An answer to the 'how to get Facebook shares and likes of some URL ?' questions

余生颓废 提交于 2020-01-03 05:51:06
问题 I am building a website where I need to retrieve Facebook shares and likes of numerous links and URLs from different sites. The problem is, for some URLs it is impossible to get what I wanted. For example, when I look for data about links that look like http://www.example.com/?a=1&b=2&c=3 all I get is wrong data about http://www.example.com/?a=1 and the rest of the URL ( &b=2&c=3 ) is simply ignored by Facebook. Here at StackOverflow, a lot of people are looking for an answer and many

How to upload .mp4 video on facebook using graph api in objective c

主宰稳场 提交于 2020-01-03 05:36:17
问题 I am using Graph API to upload video on facebook. I am able to upload .wmv format video but not .mp4. My code is as below strVidUrl=@"http://myshow.com.au/Videos/mp4s/20111216044530271247467.mp4"; //strVidUrl=@"http://www.myshow.com.au/Videos/BossAlarm.wmv"; NSURL *url = [NSURL URLWithString:strVidUrl]; NSData *data = [NSData dataWithContentsOfURL:url]; NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: data, @"video.mov", @"video/mp4", @"contentType",

facebook upload photo as company page

白昼怎懂夜的黑 提交于 2020-01-03 05:24:06
问题 I have a question regarding using facebook graph API (OAuth) to upload photo. I have created one company page under my account. When I use my account to upload photo to my company page, my user name appears as a user who uploaded the page. Is there anyway I can upload page so that company name appears? Below is the code that I currently implemented. string access_token = FacebookSystem.RetrieveToken(UserEmail, AppID); string query = string.Empty; if (string.IsNullOrEmpty(PageID) || PageID

Get messages of a page from Facebook Opengraph API

▼魔方 西西 提交于 2020-01-03 05:14:12
问题 I'm trying to get the messages sent to my Facebook page via the OpenGraph API. One solution I thought of is to use the read_page_mailboxes [1] but we got rejected by Facebook when we requested for this permission, this is because we don't really have an app where users login via Facebook. To give more context the app is just a Facebook bot what I want to do is get all the messages that have been sent to the page and then get the facebook user_id of those user. Update Some of the comments

PHP SDK for Facebook: Uploading an Image for an Event created using the Graph API

那年仲夏 提交于 2020-01-03 05:13:16
问题 Can anyone shed some light on my problem? <?php $config = array(); $config['appId'] = "foo"; $config['secret'] = "bar"; $config['cookie'] = true; $config['fileUpload'] = true; $facebook = new Facebook($config); $eventParams = array( "privacy_type" => $this->request->data['Event']['privacy'], "name" => $this->request->data['Event']['event'], "description" => $this->request->data['Event']['details'], "start_time" => $this->request->data['Event']['when'], "country" => "NZ" ); //around 300x300

Add new object with facebook developer api v2.8

三世轮回 提交于 2020-01-03 04:51:21
问题 Im trying to add new object through Object Browser. I have 2 apps with facebook integration, they both api versions are 2.8, in one of them everything works perfect, In the second one I cant add new objects. Before facebook disabled Custom Open Graph and updated the api to 2.8 I had no problems.... First App: have the "New Object" button The App with the option to add objects Second App: doesnt have the "New Object" button The App that has no "add" button I've double checked all setting in

Facebook Requests ID(s) retrieve and delete

倾然丶 夕夏残阳落幕 提交于 2020-01-03 04:42:08
问题 So I'm developing a small web app, that implements the Requests Dialog(User-to-User) . I'm able to send an invite and also successfully to save data as request id and user id. But when the user gets redirected to my app, after clicking on the request, i can't retrieve request id as shown here: https://developers.facebook.com/docs/requests/#deleting and then delete it. But i see the request id in the address bar of the browser and it looks like this: http://apps.facebook.com/myownapp/?fb

Facebook APIs: Anyway to see when a page was created?

前提是你 提交于 2020-01-03 04:33:28
问题 Has Facebook ever provided a way to ascertain when a page was created either through the Graph API, the Legacy API, or FQL? I can't seem to find it. 回答1: No, the creation date of a page isn't exposed anywhere in the API 回答2: According to this offical resource : https://developers.facebook.com/docs/reference/fql/page There is no any column that mention about the time when page is created. 来源: https://stackoverflow.com/questions/7745333/facebook-apis-anyway-to-see-when-a-page-was-created

best c# syntax/idiom, reading array of friends from Facebook

送分小仙女□ 提交于 2020-01-03 04:22:06
问题 In c#, I'm simply grabbing "/me/friends" from the FB api, private void FacebookFriends() { FB.API("/me/friends", HttpMethod.GET, FBAPIFriendsCallback); } private void FBAPIFriendsCallback(FBResult response) { // (error handling here - no problem) // ugly code... var dict = Json.Deserialize(response.Text) as Dictionary<string,object>; var friendList = new List<object>(); friendList = (List<object>)(dict["data"]); int _friendCount = friendList.Count; // ugly code... // (example shows getting

Send image and text with OpenGraph FacebookSDK 4.4 in Swift

帅比萌擦擦* 提交于 2020-01-03 04:16:30
问题 I am working with Facebook SDK 4.4.0 in my Swift App. Because Facebook forced the removal of prefilled text, I am trying to use Open Graph to post on Facebook content and image from my app. What I need to do is to send to the Facebook Timeline some text content and also a local image (not on the web). The image is local so it is within the app. What I achieved until now is to send the local image OR the content, but I want to send both things together. Here is the Swift code to send the image