facebook-graph-api

How to get average rating and number of ratings of a facebook page?

陌路散爱 提交于 2020-01-01 17:56:05
问题 I am trying to find the count of ratings and the average value from facebook pages. I obtained a long term page token via oauth and can access everything but these fields. Am I missing something, or do they not return these like google places or foursquare APIs do ? I can collect individual ratings via /{page-id}/ratings, however, if I have a page with 1,000 reviews, will all these be returned? Is it a reliable alternative to calculate my own averages/count? The google places rating count is

Retrieve friends locations from Facebook using fb_graph Ruby gem

谁都会走 提交于 2020-01-01 17:42:38
问题 I'm trying to retrieve the locations of all of a user's friends using the gem: fb_graph. (version 1.7.2) My permissions are: publish_stream,read_friendlists,offline_access,friends_location,user_location I've already authenticated the user and stored the offline access token and their facebook id. user = User.find_by_email("person@email.com") facebook_user = FbGraph::User.fetch(user.facebook_identifier, :access_token => user.facebook_access_token) facebook_user.friends.map(&:location) => [nil,

posting a swf in facebook feed through facebook api

馋奶兔 提交于 2020-01-01 17:26:11
问题 I am using the below array and $feeddata = array( 'type'=>'flash', 'method'=>'stream.publish', 'display'=>'iframe', 'link'=> 'https://developers.facebook.com/docs/reference/dialogs/', 'source'=>'http://www.hackerdude.com/channels-test/swfscout_VideoSample.swf', 'picture'=> 'http://fbrell.com/f8.jpg', 'name'=> 'Facebook Dialogs', 'caption'=> 'Reference Documentation', 'description'=> 'Using Dialogs to interact with users.'); and passing it to facebook->api($userid.'/feed', 'POST', $feeddata );

need to list all friends with facebook.py

旧时模样 提交于 2020-01-01 15:05:48
问题 i use facebook.py from: https://github.com/pythonforfacebook/facebook-sdk my problem is: I don't know to use the next-url from graph.get_object("me/friends") graph = facebook.GraphAPI(access_token) friends = graph.get_object("me/friends") 回答1: If you type in /me/friends into the Graph API Explorer, you'll see that it returns a JSON file, which is just a combination of dictionaries and lists inside one another. For example, the output could be: { "data": [ { "name": "Foo", "id": "1" }, { "name

Facebook AppRequest handle on unity3d game

这一生的挚爱 提交于 2020-01-01 14:20:12
问题 I am trying to make a game in Unity3D with new facebook unity sdk. I am able to send an AppRequest to the friends in my list. But my doubt is, after my friends has downloaded the same game, how can I communicate with friends using the AppRequest. For eg. If I am sending a "Life" to the friend, my friend should see a "Life" sent from me in his game. his "Life" counter should get incremented by 1 (life++). Same thing with "Ammo" can be done. Sender : How to differentiate the "Life request" and

Facebook API calls rate limit reached

╄→尐↘猪︶ㄣ 提交于 2020-01-01 10:46:28
问题 3 days ago we received an alert from the facebook developers page inform us that one of our apps had reached 100% of the hourly rate limit. Our application had an error that caused the increase in calls to the APIS that we solved yesterday afternoon. Since that we deployed the fix we see that in API calls graph (graph: "Application Level Rate Limiting") we don't reach the limit but the calls to the facebook APIS still failing. We want to know if there is a period of time to recover access to

Difference between sign up with Facebook/Google/etc and log in with Facebook/Google/etc

六眼飞鱼酱① 提交于 2020-01-01 09:03:16
问题 I am currently trying to implement Facebook, Google and other third parties connectivity for my web application. When I browsed many webpages I noticed there are two options, take the Facebook option for example: Log in with Facebook and Sign up with Facebook. From what I could tell they both do the same thing, if you don't have a user in your database with Facebook retrieved email, the app creates one and logs you into the new account. The same can be said about Google login/signup. What

Retrieve profile picture using Facebook SDK 3.0 for Android

℡╲_俬逩灬. 提交于 2020-01-01 07:52:28
问题 I've following problem with Facebook SDK 3.0 for Android. I wanna get my (and my friends) profile picture without using their ProfilePictureView widget, so if I use Graph Explorer I see that Json response is: { "data": { "url": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash4/372127_1377011138_1538716206_q.jpg", "is_silhouette": false } } I need that "url" path to download and show the picture, but with the following code: Request.executeGraphPathRequestAsync(Session.getActiveSession(),

Facebook Graph API Returning Empty Data Set

我与影子孤独终老i 提交于 2020-01-01 07:37:28
问题 I am attempting to use the Graph API Explorer to create an access token for my application to view my pages using 'me/accounts'. However, every time I try this, it returns me an empty data set. I have chosen manage_pages as a permission and it still doesn't work. Without checking any other permissions, I am able to view 'me/likes', 'me/movies', etc.. I have no idea what I am doing wrong. This is what I'm doing: https://developers.facebook.com/tools/explorer/ Select my application from the

How to post to a friend's wall in facebook iOS SDK 3.1?

放肆的年华 提交于 2020-01-01 07:03:48
问题 I have the SDK 3.1 working for iOS 6 for posting status updates and I have the facebook user id of the person who I want to post on their wall. I just want it to say "hi." to just one person's wall. I can target their feed with "/[id]/feed" but then I have to supply a graph object? if I use startForPostWithGraphPath() anyways. 回答1: I figured it out! First of course implement FBFriendPickerDelegate per here, unless you already have their friend ID somehow. http://developers.facebook.com/docs