facebook-graph-api-v2.0

Query Facebook for what version of the Graph API is being used / can be used

别等时光非礼了梦想. 提交于 2019-11-28 10:22:55
I'm the author of a Wordpress plugin that leverages the Facebook Graph API. Recently, some Graph calls are failing for new plugin users (only new users are affected). After some digging, I believe I've stumbled on the cause here: https://developers.facebook.com/docs/apps/versions In particular, the section "Can my app make calls to versions older than the current version?" states: An app can make calls to the version of the API that was the latest available when the app was created In other words, even if my Graph calls specify an explicit version (i.e. https://graph.facebook.com/v2.0/me ),

Facebook API: How to get the FB login user's unique ID? ID from API doesn't match 'real' user ID in v2.0

ⅰ亾dé卋堺 提交于 2019-11-28 10:15:42
- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:(id<FBGraphUser>)user { self.profilePictureView.profileID = user.objectID; self.nameLabel.text = user.name; NSLog(@"My ID:%@", user.objectID); } I have tried to print the user id using the above code. And what I get is 3176144783XXXXX . However, I got a different one using this online tool http://findmyfacebookid.com/ . The result is 1000042591XXXXX . Does anyone know the difference? Why do my app and 'findmyfacebookid.com' receive a different user ID for the same user? Note: My mobile app need to use the FB unique ID to create my

Query Facebook for what version of the Graph API is being used / can be used

☆樱花仙子☆ 提交于 2019-11-27 03:39:57
问题 I'm the author of a Wordpress plugin that leverages the Facebook Graph API. Recently, some Graph calls are failing for new plugin users (only new users are affected). After some digging, I believe I've stumbled on the cause here: https://developers.facebook.com/docs/apps/versions In particular, the section "Can my app make calls to versions older than the current version?" states: An app can make calls to the version of the API that was the latest available when the app was created In other

Facebook API: How to get the FB login user's unique ID? ID from API doesn't match 'real' user ID in v2.0

戏子无情 提交于 2019-11-27 03:36:48
问题 - (void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:(id<FBGraphUser>)user { self.profilePictureView.profileID = user.objectID; self.nameLabel.text = user.name; NSLog(@"My ID:%@", user.objectID); } I have tried to print the user id using the above code. And what I get is 3176144783XXXXX . However, I got a different one using this online tool http://findmyfacebookid.com/. The result is 1000042591XXXXX . Does anyone know the difference? Why do my app and 'findmyfacebookid.com' receive

Get facebook friends with Graph API v.2.0 [duplicate]

吃可爱长大的小学妹 提交于 2019-11-26 17:02:57
This question already has an answer here: Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application 7 answers A while ago, I used to take the friends of mine using Graph API in this way (using Graph API Explorer): /me/friends Everything was perfect but now, with 2.0 version, I saw that this way does not function for friends who didn't use (via Facebook Login) the app making the request and, if I switch Graph API Explorer to 1.0 version, it functions. So, how can I do the same thing with the 2.0 version? In v2.0 of the API, /me/friends returns friends who

Get ALL User Friends Using Facebook Graph API - Android [duplicate]

吃可爱长大的小学妹 提交于 2019-11-26 02:08:32
问题 This question already has answers here : Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application (7 answers) Closed 5 years ago . I\'m trying to get all friends, of a user that logged into my application. I can\'t use this API [friends]: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/friends Because this API only returns any friends who have used the app making the request. So I found this API [friendlist]: https://developers

Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application

ぐ巨炮叔叔 提交于 2019-11-25 22:52:08
问题 I am trying to get my friend name and ids with Graph API v2.0, but data returns empty: { \"data\": [ ] } When I was using v1.0, everything was OK with the following request: FBRequest* friendsRequest = [FBRequest requestForMyFriends]; [friendsRequest startWithCompletionHandler: ^(FBRequestConnection *connection, NSDictionary* result, NSError *error) { NSArray* friends = [result objectForKey:@\"data\"]; NSLog(@\"Found: %i friends\", friends.count); for (NSDictionary<FBGraphUser>* friend in