facebook-graph-api

Facebook graph API: get the “subcomments” in a tree of a discussion

邮差的信 提交于 2020-01-14 05:56:08
问题 I am trying to download a Facebook discussion using the graph API. The problem is: the discussion is located in a page, and in a tree-style manner, meaning that there are two types of comments: "main" comments, to the first message, and "subcomments" to the main comments themselves. It seems that the graph result only shows the "main" comments and doesn't show the subcomments. Here's an example of a comment it returns: { "id": "53526364352_1574091", "can_remove": false, "created_time": "2014

How can I use Facebook Graph API to get my site's recommendations?

依然范特西╮ 提交于 2020-01-14 05:21:05
问题 I want to add a like/recommendation button to my site. Then, I want to be able to use the Graph API to query the recommendations for my domain (e.g. 17 people liked mysite.com/thisawesomepage) There is a plugin that does this: http://developers.facebook.com/docs/reference/plugins/recommendations, but I want to be able to retrieve the raw data. Is this possible? 回答1: you just need the 'like_id' of your site. you can get it by liking it and looking at your list of likes through the graph api or

Desktop App in C#: Can't get the access token from the embedded webbrowser

∥☆過路亽.° 提交于 2020-01-14 05:10:10
问题 I've created a WPF Desktop Application with C# and placed a System.Windows.Controls.WebBrowser . Typing this (Where {0} is my app id/key) https://www.facebook.com/dialog/oauth?&client_id={0}&response_type=token&redirect_uri=https://www.facebook.com/connect/login_success.html&display=popup&scope=publish_stream,offline_access manually into my firefox/ie/whatever and going to the workflow sends my back to https://www.facebook.com/connect/login_success.html#access_token=TOKEN that's great so far.

Facebook Graph API Returns Inconsistent Number of Friends With Facebook Profile

自闭症网瘾萝莉.ら 提交于 2020-01-13 18:18:29
问题 I've noticed that using the new Facebook Graph API to fetch friends of users returns a number of friends that is close to, but not always exactly, the number of friends displayed on the user's profile. Documentation here: http://developers.facebook.com/docs/api For example, on that page, I click on https://graph.facebook.com/me/friends, and see the JSON for 477 friends, whereas my profile page on facebook shows a count of 478. Does anyone know why there is an inconsistency? 回答1: If you have

Facebook Share Dialog on iOS: “Publish” button always greyed out

别说谁变了你拦得住时间么 提交于 2020-01-13 17:02:42
问题 I have created a custom open graph object, action and story on Facebook developer website, then followed the tutorial to be able to post it through the official FB app (without login in the app). This is the code: NSMutableDictionary<FBGraphObject> *object; NSString *returnUrl = [NSString stringWithFormat:@"http://tettomante.it/questions?%@", [NSString stringWithURLParams:@{@"answer": _answerLabel.text, @"divination": [self divinationNickname]}]]; object = [FBGraphObject

Facebook Graph API : Posting Links / Thumbnail not displaying

守給你的承諾、 提交于 2020-01-13 10:33:52
问题 I'm posting a link through the Facebook Graph API. I see the link but the thumbnail image is not appearing as expected. Here's an example URL: http://barcodegen.herokuapp.com/coupon?couponId=8f9436f6-f1b3-42ec-900c-be45305e1aa6 I've run it throigh http://developers.facebook.com/tools/debug/og/object?q and that does'nt report any errors and displays the thumbnail image as expected. When I paste the link direclty on facebook it seems to detect the meta tags but when I post the link from my

Get facebook public page rating and review

被刻印的时光 ゝ 提交于 2020-01-13 09:56:11
问题 I am not the owner of some page but i want access the pages reviews and ratings,Each access time i am getting empty data set > http="https://graph.facebook.com/102227700571/tabs/reviews?access_token=fb_oauth" > content=callAPIInfo(http,fb_oauth) > content $data list() I saw some of the similar12 question but didnt get my answer,I dont wanna collect page access tokens from the admin of each pages,Is it possible to fetch review and rating.thanks. EDIT Finally i find a very detailed answer by

FacebookTokenError: This authorization code has been used

北城以北 提交于 2020-01-13 06:52:10
问题 Ok, so this is a common error with many causes. I am trying to modify an existing Node-Passport-Facebook module to have local images from the desktop uploaded to a users Facebook account after they log in. That is my goal. This is the code module I am extending https://github.com/passport/express-4.x-local-example which in turn is based on https://github.com/jaredhanson/passport-facebook I never get past console.log('ERROR HERE.. . with an error of "This authorization code has been used."

Facebook Connect (C# SDK) - How to See if User is Authenticated to FB, But Don't Force?

不羁的心 提交于 2020-01-13 06:32:46
问题 I'm implementing a single sign on between Facebook Connect and my ASP.NET MVC 3 website, using the Facebook C# SDK. Now, part of the single sign on is: If the user is authenticated to Facebook, but not to my website, see if they are connected in my system and if so, perform a single sign on (using Forms Auth). Now, i don't know how to "see if the user is authenticated". I'm using OAuth for server-side authentication, so i don't want to force them to sign in via the login page, just a silent

Using API To Post Links Does Not Include Picture, Title or Meta Desc PHP

允我心安 提交于 2020-01-13 06:11:46
问题 When posting using the API i receive this: https://www.facebook.com/weather.warnings/posts/329128793830700 notice how the Title, thumbnail and meta description are missing from the thing. The following is the code i am using. $allalert = array ( 'oauth_token' => 'not pasting this thanks :P', 'message' => "New $type for $where", 'link' => $url, ); $sendalert = $facebook->api('/125291287567922/links/','POST',$allalert); Referencing how does one post a thumbnail picture to a Facebook /links