facebook-friends

Accept or decline Friend Request using FB Graph API

喜欢而已 提交于 2019-12-11 06:45:32
问题 How I can accept or decline friend requests of other users via Graph API 回答1: You can read friend requests by looking at the friend_request table with FQL and the "read_requests" extended permission. The public API does not support managing those (accepting/denying). There may be a way if you get whitelisted somehow and get access to undocumented API's, but this is pure speculation. 来源: https://stackoverflow.com/questions/7324246/accept-or-decline-friend-request-using-fb-graph-api

Send Facebook App Request/Invite using Graph Api

混江龙づ霸主 提交于 2019-12-09 18:32:12
问题 I have the following code that would get ur friends list using graph api function getFriendsList(){ $response = $this->api('/me/friends'); return $response; } This returns friends id and name. using graph api I then execute this code in my joomla module: $fbClient = JFBConnectFacebookLibrary::getInstance(); $fbUserId = $fbClient->getUserId(TRUE); //If FB User if($fbUserId){ $f_list = $fbClient->getFriendsList(); after i get the array i display the firends picture foreach ($f_list as $friend)

Unfriending someone through the Facebook API?

青春壹個敷衍的年華 提交于 2019-12-09 13:09:35
问题 Is it possible to remove a friend relationship between two FB users through the API? I'm thinking that it's not, but (if not) is it possible to at least bring up a dialog that would let the user request the unfriending, similar to how the Friends Dialog (http://developers.facebook.com/docs/reference/dialogs/friends/) lets a user send a friend invitation? 回答1: It is not possible through the API. Facebook is like the mafia - you can get in. but there's no way out. Simialar to this question: Any

Facebook friend list in Facebook Android SDK 3.14

こ雲淡風輕ζ 提交于 2019-12-08 08:41:32
问题 I am trying to get friend list using Facebook Android SDK 3.14 but getting no results . Some pointed out that friends who are using my app can only be retrieved but I want to retrieve my complete friend list . Can anyone please tell me how can i achieve that? I am using the following code: <code> Request.executeMyFriendsRequestAsync(session, new Request.GraphUserListCallback() { @Override public void onCompleted(List<GraphUser> users, Response response) { // TODO Auto-generated method stub

Fetching Facebook Friends List with Meteor

走远了吗. 提交于 2019-12-08 02:25:49
问题 I added the meteorhacks:npm package and installed fbgraph using: $ npm install fbgraph My server side code looks like this for now: function Facebook(accessToken) { this.fb = Meteor.npmRequire('fbgraph'); this.accessToken = accessToken; this.fb.setAccessToken(this.accessToken); this.options = { timeout: 3000, pool: {maxSockets: Infinity}, headers: {connection: "keep-alive"} } this.fb.setOptions(this.options); } Facebook.prototype.query = function(query, method) { var self = this; var method =

Facebook Graph API 2.2 mutual friends

早过忘川 提交于 2019-12-06 06:24:54
So I've been trying for this for a couple of days, trying to figure out how to use Facebook's Graph API v2.2 to get mutual friends between two users. I understand that I can only get the mutual friends between two users that are using the FB App and that's cool. The app has the following approved items: email public_profile user_birthday user_friends user_hometown user_location user_relationships user_website My scenario is this: A user (user A) register to the FB App Another user (user B) registers User A looks at the user B's profile The profile should display the mutual friends between the

Send Facebook App Request/Invite using Graph Api

最后都变了- 提交于 2019-12-04 11:30:19
I have the following code that would get ur friends list using graph api function getFriendsList(){ $response = $this->api('/me/friends'); return $response; } This returns friends id and name. using graph api I then execute this code in my joomla module: $fbClient = JFBConnectFacebookLibrary::getInstance(); $fbUserId = $fbClient->getUserId(TRUE); //If FB User if($fbUserId){ $f_list = $fbClient->getFriendsList(); after i get the array i display the firends picture foreach ($f_list as $friend) { for($i = 0; $i < count($friend); $i++) { echo '<img src="http://graph.facebook.com/'.$friend[$i]['id'

Unfriending someone through the Facebook API?

最后都变了- 提交于 2019-12-03 15:59:33
Is it possible to remove a friend relationship between two FB users through the API? I'm thinking that it's not, but (if not) is it possible to at least bring up a dialog that would let the user request the unfriending, similar to how the Friends Dialog (http://developers.facebook.com/docs/reference/dialogs/friends/) lets a user send a friend invitation? Plastic Sturgeon It is not possible through the API. Facebook is like the mafia - you can get in. but there's no way out. Simialar to this question: Any way to unfriend or delete a friend using Facebook's PHP SDK or API? Also, it is against

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

五迷三道 提交于 2019-12-03 08:13:03
问题 This question already has answers here : Using Facebook API to invite friends? (4 answers) Closed 5 months ago . 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

Using Facebook API to invite friends?

好久不见. 提交于 2019-12-03 01:58:42
问题 I want an "Invite Friends" link on my website where you click it and you get a Facebook dialog that asks you to choose which of your friends you'd like to invite. Those friends then either get an application request, Facebook email or at least a wall post inviting them to join my website. I'm a bit confused over what is the proper way to do this. It seems the only non-deprecated way now is through the Requests Dialog. So I call the FB.ui Javascript method like the example they give: FB.ui({