w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Facebook Graph API get average amount of users "friends of friends" using fql
There is no need to make a batch request for each of the friend of the user, instead you can use the following nested query to do the same, SELECT friend_count FROM user WHERE uid in (SELECT uid2 from friend where uid1=me())

Categories : PHP

Generating list of facebook friends using Facebook's Graph API
First of all you need to add proper permission to access education history of user & user's friends, which you can achieved by doing this but remember user_education_history is to access User education while friends_education_history is for User's friends education history: $params = array( 'scope' => 'user_education_history, friends_education_history, user_location, email'); $loginUrl = $facebook->getLoginUrl($params); And to access education field you have to modify one line from your code like this: $user_profile = $facebook->api('/me?fields=name,education,email','GET'); You can use below code to just print your $user_profile and then parse it according to your requirements: <pre><?php print_r($user_profile); ?></pre> Probably its too late answer f

Categories : PHP

get friends after a specific id using facebook graph api
This is not possible as the person wont have every user in facebook as his friend. (ie) a person may have user3 in his friend list but not user4 but have user5 You need to store all the friends UID in an array and then iterate over it. Assuming you have an authorized session $friends = $facebook->api("/me/friends"); Now iterate over friends array

Categories : PHP

Get facebook friends from open graph user
I think I figured it out. If you use a request, you can find a list of the users friends using the current session. The code I use is Request.executeMyFriendsRequestAsync(Session.getOpenSession(), new GraphUserListCallback() { @Override public void onCompleted(List<GraphUser> users, Response response) { // TODO } });

Categories : Android

Getting the number of mutual friends using Facebook Graph API
You should use Facebook Batch Api. With it you can enqueue more requests into one, and pay the latency cost only once. https://developers.facebook.com/docs/reference/api/batch/

Categories : Javascript

Facebook Graph API returns statuses for only some friends
To get statuses, one should only need read_stream permission as described at https://developers.facebook.com/docs/reference/api/user/ and https://developers.facebook.com/docs/reference/fql/status Reading a user's status messages requires the read_stream permission. Without the id of the user's friend it's not possible to know the exact reason of the cause. Possible things to look at what would be The friend has the platform disabled in their settings (https://www.facebook.com/settings?tab=applications&section=opt_out&view) The friend has no status objects but post objects instead so the data will appear in [username]/posts with read_stream permission Permissions were never actually set in your app, this happens when developers assume "Configuring Permissions" in app setting

Categories : Facebook

Facebook: How to get list of last friends checkins using graph API or FQL
You can try use checkin api by FQL. I see only one way: use multi query in one request: 1) select post_id from checkin table from your friends (author_uid) order by timestamp (desc) 2) select page_id from location_post table, where posts from query (1) 3) get pages info from table page where page_id is set from (2) As result, you get last checkins, but issue: this checkins don't grouped by friends. For example, you can get last (by date) checkins, that have one user.

Categories : Facebook

Send message to Facebook friends using graph api
Facebook messages are a channel for person-to-person communication, and not for apps to send messages, or encourage people to spam their friends. In general, games on Facebook.com should use requests when communicating in game status (its your turn), inviting people to use an application, or sending messages to multiple people. You should offer the Send Dialog in situations when someone might otherwise send an email. Please refer this documentation : http://developers.facebook.com/docs/reference/dialogs/send/ UPDATE: And for your Dropbox concern...I think they are sending an mail to the particular user with their facebook email address (eg.username@facebook.com) You can see this email address in your facebook General Account Settings. and you can see this note below it which says: "Y

Categories : IOS

Is there any way to retrive friends anniversary using facebook graph api in android
https://developers.facebook.com/docs/reference/fql/user/ Check if you can get relationship_status , as I can see the same in fql and if the returned value comes married then you may look what else is being returned by facebook Graph or fql. I haven't tested it but you may try and let me know too.

Categories : Android

In Facebook graph API how to find which all of your friends like a particular page with detail info?
Simple, just add another IN to the query SELECT uid, pic, name, username FROM user WHERE uid in (SELECT uid FROM page_fan WHERE page_id = 114719705207104 AND uid IN (SELECT uid2 FROM friend WHERE uid1=me())) The UID is the user id you want. The URL for the user is equal to www.facebook.com/UID or www.facebook.com/USERNAME Since not every user has a username I advise you to use the first option with the UID. You have many ways of retrieving the user pic, with the uid you can use the graph api to fetch the pic in various sizes, doing this https://graph.facebook.com/UID/picture or https://graph.facebook.com/USERNAME/picture Then adding some get parameters you can configure the size of the pic. You can read more about that here If you want to keep using FQL for selecting the pic, you h

Categories : Database

Django Pagination not giving results
Is there any reason you aren't using class based views? There's a paginate property you can modify and it'll automatigically give you pagination! from django.views.generic import ListView class BusinessView(ListView): model = YourBusinessModel paginate_by = 20 Here's some more docs: https://docs.djangoproject.com/en/1.3/ref/class-based-views/#django.views.generic.list.MultipleObjectMixin.paginate_by Have a good one!

Categories : Python

Facebook FQL query friends of friends events doesn't work anymore?
Facebook made some changes in the API and that may affect your request. To check this, go to: Facebook > Apps > Your App > Settings > Advanced. There is a "Migration" panel which those parameters: Events Timezone: Enables real timezone support for events. After this migration, event times are returned as ISO-8601 formatted strings, even in FQL. October 2013 Breaking Changes: The quarterly Platform changes that will be in effect on October 2, 2013. You can check what will be done in the October breaking change, but your problem should be due to "Events timezone" because your are using datetimes for events in your FQL query. Try to disable the new API feature (check Disable and Save your settings).

Categories : Facebook

Posting photo on Facebook friends wall IOS SDK will that be affected by Removing the ability to post to friends' timelines via API
You can easily find this out by activating the October changes in the developer settings of your app, but i am pretty sure it will be affected. That´s how you get to the settings: https://developers.facebook.com/apps/[your-app-id]/advanced "October 2013 Breaking Changes" > enable You can always switch back, of course.

Categories : Iphone

Facebook App request not sending to Facebook friends through Facebook Android SDK
Direct the request Bundle params = new Bundle(); params.putString("message", "I just smashed " + application.getScore() + " friends! Can you beat it?"); // 2. Optionally provide a 'to' param to direct the request at a specific user params.putString("to", "515768651"); // Phil showDialogWithoutNotificationBar("apprequests", params); Suggest friends Bundle params = new Bundle(); params.putString("message", "I just smashed " + application.getScore() + " friends! Can you beat it?"); String [] suggestedFriends = { "695755709", "685145706", "569496010", "286400088", "627802916", }; params.putString("suggestions", TextUtils.join(",", suggestedFriends)); showDialogWithoutNotificationBar("apprequests", params); Ref : http://developers.facebook.com/docs/tutorials/a

Categories : Android

How can I open a com.facebook.Session to get user's facebook friends list?
session.openForRead(new Session.OpenRequest(this).setCallback(callback).setPermissions(Arrays.asList("your_permissions"))); This link might help you. EDIT: public void getBirthdays(){ Request fBdays = Request.newMyFriendsRequest(Session.getActiveSession(), new Request.GraphUserListCallback() { @Override public void onCompleted(List<GraphUser> users, Response response) { if(response.getError() == null){ for(GraphUser usr:users){ Log.d(TAG,usr.getName()); } } } }); Bundle requestParams = fBdays.getParameters(); requestParams.putString("fields", "name,birthday,picture");//for extra properties fBdays.set

Categories : Android

Tag or pick facebook friends through IOS 6.0 social framework or Facebook SDK
Will be better if you can post some of your code... Im using the following example to invoke the FBFriendPickerViewController - (IBAction)addTAG:(id)sender { if (self.friendPickerController == nil) { // Create friend picker, and get data loaded into it. self.friendPickerController = [[FBFriendPickerViewController alloc] init]; self.friendPickerController.title = @"Select Friends"; self.friendPickerController.delegate = self; } [self.friendPickerController loadData]; [self.friendPickerController clearSelection]; // Present the friend picker [self.friendPickerController presentModallyFromViewController:self animated:YES handler:^(FBViewController *sender, BOOL donePressed) {

Categories : IOS

Facebook,Android- How to get friends birthday from facebook
You probably want to go for the Graph API as this is usually a more simple approach. You can check out this link to see how retrieving al ist of friends are completed in API 3.0. Hope this helps.

Categories : Android

How to fetch friends list from facebook in FACEBOOK SDK in iOS?
Try like this.... // To fetch friends list -(void)addList:(FBSession *)session { NSString* fql = [NSString stringWithFormat: @"select uid from user where uid == %lld", session.uid]; NSDictionary* params = [NSDictionary dictionaryWithObject:fql forKey:@"query"]; sessionView = session; [[FBRequest requestWithDelegate:self] call:@"facebook.friends.get" params:params]; } - (void)request:(FBRequest*)request didLoad:(id)result { if(myList==nil) { NSArray* users = result; myList =[[NSArray alloc] initWithArray: users]; for(NSInteger i=0;i<[users count];i++) { NSDictionary* user = [users objectAtIndex:i]; NSString* uid = [user objectForKey:@"uid"]; NSString* fql = [N

Categories : IOS

Getting Friends Likes and Information using Graph API
You don't have the correct permissions. The permission needed for friend likes is friends_likes you need to add this to your scope array in your PHP login URL. Example $params = array( 'scope' => 'friends_likes', 'redirect_uri' => 'http://nu-voo.co.uk/fb/examples/with_js_sdk.phpe' ); $loginUrl = $facebook->getLoginUrl($params); or using the Facebook login button <fb:login-button scope="friends_likes"></fb:login-button>

Categories : PHP

Get friends checkin at a particular location using FBL or graph API
You can use coords column in checkin table. SELECT coords,author_uid,author FROM checkin WHERE coords.latitude < '15.479513888889' AND coords.latitude < '20.479513888889' AND coords.longitude > '70.891111111111' AND coords.longitude < '80.891111111111' AND author_uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) OR tagged_uids IN (SELECT uid2 FROM friend WHERE uid1 = me()) you can use something like the above. Here you have to set the latitude and longitude range.. I do not know how to calculate the latitude and longitude within certain radius... But this might help you

Categories : Facebook

Facebook Graph API - access_token=app_id|app_secret - search Graph API without user login
According to Facebook The following changes will go into effect on July 10, 2013: ..... Graph API search changes App access tokens will be required for all search Graph API calls except Places and Pages. Search for application will no longer be supported.

Categories : C#

2 near identical URL's integrated with Open Graph tags have separate behaviors when doing a Facebook graph call
Well, I think we cannot help you without the real url of the object, so as to see what it is! Have you try both url (the real ones) in facebook debugger: https://developers.facebook.com/tools/debug to see the difference?

Categories : Facebook

Prevent Facebook from grouping Open Graph actions in Graph API?
You need to use a different endpoint: /me/<app_namespace>:<action_name> This will return all actions published by your app for a given action and a given user. For example, using a user access token: https://graph.facebook.com/me/my_cooking_app:bake?access_token=...

Categories : Facebook

Facebook giving invalid token Facebook exception on login after reinstall
Try this code for facebook login Session.openActiveSession(this, true, new Session.StatusCallback() { // callback when session changes state @Override public void call(final Session session, SessionState state, Exception exception) { if (session.isOpened()) { if(!session.getPermissions().contains("email")) { session.requestNewReadPermissions(new Session.NewPermissionsRequest(Facebookpersil.this, PERMISSIONS)); } // make request to the /me API Request.executeMeRequestAsync(session, new Request.GraphUserCallback() { // callback after Graph API response with user object @Override public void onCompleted(GraphUser user, Resp

Categories : Java

How to get all friends like on Facebook?
I don't think it's possible to get all with FQL, you need to get a list of the user's friends id's, and then run the query against each friend.. $friends = array(); //an array of user ids foreach($friends as $value){ //Create query $fql = "SELECT object_id, object_id_cursor,object_type, post_id, post_id_cursor, user_id FROM like WHERE user_id = $value"; } However I don't think you want to go with FQL, you can do things in an easier manner using the graph API with batched requests (you'll end up with hundreds of API calls if you do this in FQL, and will probably end up with your APP blocked by facebook)

Categories : Java

Filter Facebook friends who also use the App
Following is the code written in Facebook default web app. $app_using_friends = $facebook->api(array( 'method' => 'fql.query', 'query' => 'SELECT uid, name FROM user WHERE uid IN(SELECT uid2 FROM friend WHERE uid1 = me()) AND is_app_user = 1' ));

Categories : PHP

How can get friends list from facebook-ios-sdk-3.5.3
Yes, you can definitely get it using https://graph.facebook.com/userid/friends?fields=work&access_token=ACCESSTOKENHERE or by caliing an object /me/friends, you can get list of facebook friends Following is the list of permission to access friend's info friends_birthday friends_about_me friends_activities friends_checkins friends_education_history friends_events friends_games_activity friends_groups friends_hometown friends_interests friends_likes friends_location friends_notes friends_online_presence friends_photo_video_tags friends_photos friends_videos friends_relationship_details friends_relationships friends_religion_politics friends_status friends_subscriptions friends_website friends_work_history

Categories : Iphone

How to fetch data from given graph URL in facebook graph API
This is just a 2 steps thing Parse the next/previous URL from the response. You can do it yourself or one of the many libraries With the timestamp parsed, just call your function recursively and "since" in the Graph URL. function getFBData(date) { FB.api('/me/photos?fields=created_time&since=' + date, function(response){ var pager = "parse the paging data from facebook" getFBData(pager); }); }

Categories : Javascript

Facebook Graph API & django-facebook - posting links and photos to page feeds
Facebook Graph API PHP SDK posting on page as page Found it. There is a different access token for impersonating the page to post as the page. You get that from /me/accounts and use that token to post as the page. Updated working code: @facebook_required_lazy(scope=['manage_pages', 'publish_stream', 'photo_upload']) def index(request): if request.method == 'POST': form = CPYPosterForm(request.POST) if form.is_valid(): fb = require_persistent_graph(request) msg = form.cleaned_data['msg'] pages = form.cleaned_data['pages'] me_accounts = fb.get('/me/accounts') access_token = None resp = dict() for p in pages: for d in me_accounts['data']: if d['id']

Categories : Django

Fetch facebook user public data, which available without loggining througth Facebook Graph API if any exists
This isn't possible unless you have an access token. The public graph doesn't reflect the browser information it reflects what is given in the documentation https://developers.facebook.com/docs/reference/api/user/

Categories : Java

Facebook Graph API, Development of Facebook page post targeting( make visible only specified country/city )
Try feed_targeting instead of targeting! All parameters which you can target like languages,cities,counties are facebook specific. You can resolve them via autocomplete data : "{'locales':[1001],'countries':[GE],'cities':[825886]}" Nice feature for automatic posting with targeting but so bad documented in the Facebook documentation...

Categories : PHP

Invitaion to facebook friends is not working
nitika.. Now a days facebook doesn't show invitation on its notification, Your invitation will be seen at Appcenter/ Request one more things about callback from FB.ui FB.ui({method: 'apprequests', message: 'My Great Request' }, requestCallback); this callback will work for you to save request id for future use.

Categories : C#

Android. Facebook SDK friends list
You may want to look at UNIVERSAL IMAGE LOADER. The main features of the Universal ImageLoader for Android are: • asynchronous loading and displaying images from the Internet or the SD-card; • ability of caching loaded images in memory and / or the device's file system; • ability to monitor the loading process by means of "listeners" • effective working with the memory while caching images in the memory; • wide opportunities to customize the tool to fit it to your needs.

Categories : Android

How to get friends' Facebook statuses using Javascript + FQL?
This works for me, I am using select message from status where uid = XXX which gives me the same result as using the Graph API XXX?fields=statuses Since you are only asking for "read_stream", you also need to add in permissions for your friends information. The additionaly permission you need to ask for is friends_status Without it, you just get the friend UID

Categories : Facebook

Invite Facebook friends error
try this it has helped me. copy it in ur html . http://www.9lessons.info/2012/07/facebook-invite-friends-api.html#comment-form

Categories : Facebook

Friends Online Presence - Facebook SDK 3
If you can do it in FQL then getting it to work in the SDK is simply a matter of figuring out the right query. Your query SELECT uid, name,pic_small,pic_big,online_presence FROM user WHERE online_presence IN ('active') AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) order by name is executed as graph.facebook.com/fql?q=SELECT uid, name,pic_small,pic_big,online_presence FROM user WHERE online_presence IN ('active') AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) order by name basically HTTP GET /fql?q=<QUERY> So I believe just need to set the path as fql in requestForGraphPath FBRequest *fql = [FBRequest requestForGraphPath:@"fql"]; [fql.parameters setObject:@"SELECT uid, name,pic_small,pic_big,online_presence FROM user WHERE online_presence IN ('active') "

Categories : IOS

Rails - how to get with OmniAuth my Facebook friends?
Try using gem 'fb_graph' for it. Check the link for it https://github.com/nov/fb_graph You can get your fb friends by @fb_friends = FbGraph::User.me(USER-FB-ACCESS-Token).friends Here, USER-FB-ACCESS-Token is the access token that one user will will get after connecting to facebook via omniauth facebook.

Categories : Ruby On Rails

How can I access email id's of my facebook friends
I don't particularly program with the facebook api. I wouldn't think they would provide you with direct access to information not published. Most sights such as Google (gmail) and Yahoo provide email addresses for their users that is associated with their username. Facebook does also. Just use their public.username@facebook.com, just as you would a person's username@yahoo.com or their username@gmail.com.

Categories : Facebook

Get the number of friends a facebook user has
This is intentional behaviour. There was a bug report filed for this problem, and this was the official Facebook response: This is intentional, you cannot retrieve friends lists for non-users of the app. I suspect that if you used a userid of someone that had installed your app it might work, but not just any arbitrary user.

Categories : Python

Facebook friends count using python
I suggest your acces token is wrong. Try this URL with your acces token inserted on your browser https://graph.facebook.com/puja41/friends?access_token=YOURTOKENHERE

Categories : Python



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.