Facebook SDK 4.2 FBGraphUser Protocol Update

I am working on an Xcode project that has an SDK for Windows 3.1.4. I am currently updating the SDK to 4.2. I'm just wondering if anyone can help me with the update related to the FBGraphUser protocol, and how can I update it for the Facebook SDK 4.2. I looked around and found that they defined it in FBSDKShareKit. I also looked at FBSDKShareOpenGraphObject, but could not figure out how to update it. Or should I use FBSDKProfile? Should I use the FBSDKShareOpenGraphValueContaining protocol?

For example, I have a method like this:

-exampleMethod: (NSDictionary<FBGraphUser> *) user 

I was wondering how should I update this for SDK v4.2?

I searched on Google, StackOverflow and Reddit, but was unsuccessful. If someone can help me, it will be awesome!

Thank you for your help in advance and apologize for the poorly structured question.

+5
source share
1 answer

According to facebook update guide

Chart API Update

Requests - FBSDKGraphRequest and FBSDKGraphRequestConnection are in FBSDKCoreKit and provide helpers access to the Graph API. They are very similar to FBRequest and FBRequestConnection in v3.x. By default, they use [FBSDKAccessToken currentAccessToken] to issue requests, so you usually issue requests after logging in. For instance:

 FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:nil]; [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, 

id, error NSError *) {// TODO: process results or request error. }];

Batch requests. As in v3.x, you create an FBSDKGraphRequestConnection to add multiple batch requests.

The FBViewController and its associated select classes, such as the FBCacheDescriptor, have been removed. If you want to display the results of the Graph API in a table, you can do this manually. Take a look at Scrumptious or RPSSample for ideas.

Take a look at Scrumptious or RPSSample for ideas.

+1
source

All Articles