facebook-friends

Facebook js sdk: “select a friend” dialog, then post to their wall? [duplicate]

这一生的挚爱 提交于 2019-12-02 22:05:40
This question already has answers here : Using Facebook API to invite friends? (4 answers) Needs to resolve that procedure. Now using the new javascript sdk, inside my "iframe tab". Select friend(s) Post in their wall. 1: not solved I couldn't find a way of poping a "select a friend" dialog, trough the new api. The only mention in FB.ui is about a "friends dialog" used to "invite a friend". Maybe I need a dialog ( which one ) to select a friend and than post? Ideally multi-friend selector so I can post to as many friends as a user can choose? 2: solved ( any other solution is welcome ) To post

FQL Graph API: Mutual Friends

…衆ロ難τιáo~ 提交于 2019-12-02 09:11:54
I know you can't get friends of friends, but can you get mutual friends using some query, in a computationally efficient manner? Could I even iterate through my friends to see which of them is friends with a target? Is there any good way to get Mutual friends? You can do it like this: $facebook = new Facebook(array( 'appId' => FB_ID, 'secret' => FB_APP_SECRET, 'cookie' => true, )); $fql = "SELECT id FROM profile WHERE id IN (SELECT uid2 FROM friend WHERE uid1=me())"; $response = $facebook->api(array( 'method' => 'fql.query', 'query' =>$fql, )); This will return the id of the mutual friends.

facebook graph api..get friends of friends

萝らか妹 提交于 2019-11-30 09:01:13
I am using the FB graph api to get a list of my friends' friends using: https://graph.facebook.com/<id>/friends?access_token=<token> Now the weird thing is that this works for some of my friends and does not work for some others. Could somebody tell me why this is happening and a possible fix? In cases where it does not work, I get the following message: "Can't lookup all friends of YYYYYY. Can only lookup for the logged in user (XXXXX), or friends of the logged in user with the appropriate permission" And I repeat, I AM ABLE to get friend lists of some of my friends using the above URL. What

Getting list of Facebook friends with latest API

爱⌒轻易说出口 提交于 2019-11-30 05:54:17
问题 I'm using the most recent version of the Facebook SDK (which lets to connect to something called the 'graph API' though I'm not sure). I've adapted Facebook's example code to let me connect to Facebook and that works... but I can't get a list of my friends. $friends = $facebook->api('friends.get'); This produces the error message: "Fatal error: Uncaught OAuthException: (#803) Some of the aliases you requested do not exist: friends.get thrown in /mycode/facebook.php on line 543" No clue why

how to use app links to pass parameter to android playstore to be retrieved when app is installed

天大地大妈咪最大 提交于 2019-11-29 23:12:48
I'm developing a social android trivia game. When a user challenges to a game a friend, who doesn't have my trivia game installed, i'd like to send him a custom url to download the app from the market containing a parameter of the inviting user id. when the app is run for the first time, i need to be able to receive the parameter passed to the market, in order to identify the user and show him the game he was challenged to. i couldn't figure out how to do this with app links and didn't find any appropriate example. any help would be greatly welcomed! Thanks, Ido To send data to the Android

facebook graph api..get friends of friends

别来无恙 提交于 2019-11-29 12:27:14
问题 I am using the FB graph api to get a list of my friends' friends using: https://graph.facebook.com/<id>/friends?access_token=<token> Now the weird thing is that this works for some of my friends and does not work for some others. Could somebody tell me why this is happening and a possible fix? In cases where it does not work, I get the following message: "Can't lookup all friends of YYYYYY. Can only lookup for the logged in user (XXXXX), or friends of the logged in user with the appropriate

how to use app links to pass parameter to android playstore to be retrieved when app is installed

心不动则不痛 提交于 2019-11-28 20:33:15
问题 I'm developing a social android trivia game. When a user challenges to a game a friend, who doesn't have my trivia game installed, i'd like to send him a custom url to download the app from the market containing a parameter of the inviting user id. when the app is run for the first time, i need to be able to receive the parameter passed to the market, in order to identify the user and show him the game he was challenged to. i couldn't figure out how to do this with app links and didn't find

Get the Friends of my friend using the Graph API

旧城冷巷雨未停 提交于 2019-11-28 10:29:21
I am trying to do a very basic thing with the new Graph API. I already know how to get my friends: " https://graph.facebook.com/me/friends?access_token=4333ed34d ..." But if I have a friend who's ID is 123456, then I want to get his friends : " https://graph.facebook.com/123456/friends?access_token=4333ed34d ..." But I get an exception: "The remote server returned an error: (500) Internal Server Error." Why can't I do that? It's a very trivial task to ask from the API. If I try to get friends of a random user I get HTTP 500 but it contains this response: { "error": { "type": "Exception",

Getting list of Facebook friends with latest API

試著忘記壹切 提交于 2019-11-28 03:50:54
I'm using the most recent version of the Facebook SDK (which lets to connect to something called the 'graph API' though I'm not sure). I've adapted Facebook's example code to let me connect to Facebook and that works... but I can't get a list of my friends. $friends = $facebook->api('friends.get'); This produces the error message: "Fatal error: Uncaught OAuthException: (#803) Some of the aliases you requested do not exist: friends.get thrown in /mycode/facebook.php on line 543" No clue why that is or what that means. Can someone tell me the right syntax (for the latest Facebook API) to get a

Facebook iOS SDK - get friends list

一个人想着一个人 提交于 2019-11-28 03:12:24
Using the Facebook iOS SDK, how can I get an NSArray of all my friends and send them an invitation to my app? I am specifically looking for the graph path to get all of the friends. Jeff With Facebook SDK 3.0 you can do this: FBRequest* friendsRequest = [FBRequest requestForMyFriends]; [friendsRequest startWithCompletionHandler: ^(FBRequestConnection *connection, NSDictionary* result, NSError *error) { NSArray* friends = [result objectForKey:@"data"]; NSLog(@"Found: %lu friends", (unsigned long)friends.count); for (NSDictionary<FBGraphUser>* friend in friends) { NSLog(@"I have a friend named %